当前位置: 代码迷 >> 综合 >> ModuleNotFoundError: No module named ‘suit.apps‘
  详细解决方案

ModuleNotFoundError: No module named ‘suit.apps‘

热度:55   发布时间:2023-11-21 04:12:29.0

命令:python3 manage.py  makemigrations

报错:
Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File "/home/renqw/local/python3/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/home/renqw/local/python3/lib/python3.6/site-packages/django/core/management/__init__.py", line 347, in execute
    django.setup()
  File "/home/renqw/local/python3/lib/python3.6/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/renqw/local/python3/lib/python3.6/site-packages/django/apps/registry.py", line 89, in populate
    app_config = AppConfig.create(entry)
  File "/home/renqw/local/python3/lib/python3.6/site-packages/django/apps/config.py", line 116, in create
    mod = import_module(mod_path)
  File "/home/renqw/local/python3/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/renqw/tool/api_automation_test-master/api_test/apps.py", line 2, in <module>
    from suit.apps import DjangoSuitConfig
ModuleNotFoundError: No module named 'suit.apps'

解决方法:

pip3 install https://github.com/darklow/django-suit/tarball/v2

原因:需要与django-suit            2.0a1适配

 

  相关解决方案