启动服务器时出错?

时间:2017-05-24 13:04:02

标签: django-bootstrap3

我使用PyCharm,当我尝试运行服务器时,我收到此错误。我的操作系统是Windows x64。

Unhandled exception in thread started by <function check_errors.
<locals>.wrapper at 0x0000025D31464598>
Traceback (most recent call last):
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\utils\autoreload.py", line 227, in wrapper
    fn(*args, **kwargs)
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\core\management\commands\runserver.py", line 117, in inner_run
    autoreload.raise_last_exception()
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\utils\autoreload.py", line 250, in raise_last_exception
    six.reraise(*_exception)
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\utils\six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\utils\autoreload.py", line 227, in wrapper
    fn(*args, **kwargs)
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\apps\registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "C:\Python36\lib\site-packages\django-1.11.1-py3.6.egg\django\apps\config.py", line 94, in create
    module = import_module(entry)
  File "C:\Python36\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'bootstrap3'

1 个答案:

答案 0 :(得分:0)

你需要使用pip3安装包boostrap3(我认为你有Python3)。

  

pip3 install django-bootstrap3

来源:ImportError: No module named bootstrap3