ModuleNotFoundError: No module named 'raven'

学习django的时候,提示这个错误:

 

typeidea/typeidea-env/lib/python3.7/site-packages/django/conf/__init__.py", line 110, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "", line 728, in exec_module
  File "", line 219, in _call_with_frames_removed
  File "/Users/apple/PycharmProjects/typeidea/typeidea/typeidea/settings/develop.py", line 3, in
    import raven
ModuleNotFoundError: No module named 'raven'

安装raven尝试一下raven

安装的时候老是time out

 

pip --default-timeout=100 install raven

 


Collecting raven
  Downloading https://files.pythonhosted.org/packages/bd/8e/62e26a88c0a1bbae677200baf0767c1022321a6555634f8129e6d55c5ddc/raven-6.10.0-py2.py3-none-any.whl (284kB)
     |████████████████████████████████| 286kB 352kB/s
Installing collected packages: raven

 

代码提示还是缺少ModuleNotFoundError: No module named 'captcha'

继续安装

ERROR: Could not find a version that satisfies the requirement ckeditor (from versions: none)
ERROR: No matching distribution found for ckeditor

安装成功提示

 

Collecting raven
  Downloading https://files.pythonhosted.org/packages/bd/8e/62e26a88c0a1bbae677200baf0767c1022321a6555634f8129e6d55c5ddc/raven-6.10.0-py2.py3-none-any.whl (284kB)
    100% |████████████████████████████████| 286kB 12kB/s
Installing collected packages: raven
Successfully installed raven-6.10.0
 

 

你可能感兴趣的:(python实践大全)