我在 django 项目中找不到的"核心"模块上遇到了问题。为了克服这个问题,我知道我必须安装"locustio ==0.8a2",所以我输入 windowshellpip install locustio ==0.8a2
但它没有安装。 这是最初的问题(django(:
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:UsersPapulDesktopsandeepmyprojectmyprojecturls.py", line 6, in <module>
from core.views import SignUpView
ModuleNotFoundError: No module named 'core'
这是快照:[1] https://i.stack.imgur.com/00tGl.png [2]: https://i.stack.imgur.com/PXO5u.png
"No module named core
",看起来找不到您的django
包。请显示"pip list
",顺便说一下,为什么不使用一些IDE来运行您的项目。(例如pycharm
(
你应该安装蝗虫包,它不再是蝗虫了:
蝗虫包已经从"蝗虫"变成了"蝗虫"。请更新您的参考(如果您不想更新到 1.0,请将您的版本固定到 0.14.6(
pip install locust
要解决此问题,请安装缺少的模块:
pip install core
运行之前
pip install locustio==0.8a2