报错ImportError: No module named captcha
来源:6-7 用户注册-1
阿龙_mk
2020-02-22
manage.py@mini > makemigrations
"E:\Program Files\JetBrains\PyCharm 2019.3.2\bin\runnerw64.exe" C:\Users\Administrator\Envs\mini\Scripts\python.exe “E:\Program Files\JetBrains\PyCharm 2019.3.2\plugins\python\helpers\pycharm\django_manage.py” makemigrations E:/PythonProjects/mini
('Tracking file by folder pattern: ', ‘migrations’)
Traceback (most recent call last):
File “E:\Program Files\JetBrains\PyCharm 2019.3.2\plugins\python\helpers\pycharm\django_manage.py”, line 52, in
run_command()
File “E:\Program Files\JetBrains\PyCharm 2019.3.2\plugins\python\helpers\pycharm\django_manage.py”, line 46, in run_command
run_module(manage_file, None, ‘main’, True)
File “e:\program files\python2\Lib\runpy.py”, line 188, in run_module
fname, loader, pkg_name)
File “e:\program files\python2\Lib\runpy.py”, line 82, in run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File “e:\program files\python2\Lib\runpy.py”, line 72, in run_code
exec code in run_globals
File “E:\PythonProjects\mini\manage.py”, line 10, in
execute_from_command_line(sys.argv)
File "C:\Users\Administrator\Envs\mini\lib\site-packages\django\core\management_init.py", line 364, in execute_from_command_line
utility.execute()
File "C:\Users\Administrator\Envs\mini\lib\site-packages\django\core\management_init.py", line 338, in execute
django.setup()
File “C:\Users\Administrator\Envs\mini\lib\site-packages\django_init_.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “C:\Users\Administrator\Envs\mini\lib\site-packages\django\apps\registry.py”, line 85, in populate
app_config = AppConfig.create(entry)
File “C:\Users\Administrator\Envs\mini\lib\site-packages\django\apps\config.py”, line 94, in create
module = import_module(entry)
File “e:\program files\python2\Lib\importlib_init_.py”, line 37, in import_module
import(name)
ImportError: No module named captcha
1回答
-
bobby
2020-02-24
pip install django-simple-captcha
00
相似问题