Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

ImportError: No module named django.core.management #553

Closed
yunfei2020 opened this issue Nov 21, 2020 · 6 comments
Closed

ImportError: No module named django.core.management #553

yunfei2020 opened this issue Nov 21, 2020 · 6 comments

Comments

@yunfei2020
Copy link

hello
when i test

===========================

python manage.py test

Traceback (most recent call last):
File "manage.py", line 35, in
main()
File "manage.py", line 29, in main
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management

==================================
How to solve, I am a novice
thanks!

@moggers87
Copy link
Member

Did you follow the instructions in the README? You need to run make first to install dependencies. It's also recommended that you create a virtualenv: https://github.com/Inboxen/Inboxen#developing

@yunfei2020
Copy link
Author

TIM截图20201122154913

@yunfei2020
Copy link
Author

No response for half an hour

@yunfei2020
Copy link
Author

My computer system is windows10 and I am in Beijing, China

@moggers87
Copy link
Member

Sorry, Inboxen has only been tested on Linux.

@yunfei2020
Copy link
Author

TIM截图20201122200211

python3 manage.py test

=========================
Traceback (most recent call last):
File "manage.py", line 35, in
main()
File "manage.py", line 31, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.5/dist-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.5/dist-packages/django/core/management/init.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/test.py", line 23, in run_from_argv
super().run_from_argv(argv)
File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 315, in run_from_argv
parser = self.create_parser(argv[0], argv[1])
File "/usr/local/lib/python3.5/dist-packages/django/core/management/base.py", line 289, in create_parser
self.add_arguments(parser)
File "/usr/local/lib/python3.5/dist-packages/django/core/management/commands/test.py", line 44, in add_arguments
test_runner_class = get_runner(settings, self.test_runner)
File "/usr/local/lib/python3.5/dist-packages/django/test/utils.py", line 303, in get_runner
test_runner_class = test_runner_class or settings.TEST_RUNNER
File "/usr/local/lib/python3.5/dist-packages/django/conf/init.py", line 79, in getattr
self._setup(name)
File "/usr/local/lib/python3.5/dist-packages/django/conf/init.py", line 66, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python3.5/dist-packages/django/conf/init.py", line 157, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 944, in _find_and_load_unlocked
File "", line 222, in _call_with_frames_removed
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 944, in _find_and_load_unlocked
File "", line 222, in _call_with_frames_removed
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 956, in _find_and_load_unlocked
ImportError: No module named 'inboxen'

When I tested it on Debian Linux, there were also errors

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants