Python配置Django遇到Couldn't import

2017-02-25  本文已影响0人  AlexFelix

通过pip安装好Django后,打印版本信息都没错,但是一运行就报

"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"

Paste_Image.png

好,百度一番,什么virtualenv 啊,升级Django啊都没用,最后把Django路径加到环境变量,如

D:\Python3.0\Lib\site-packages\django

Paste_Image.pngPaste_Image.png
上一篇 下一篇

猜你喜欢

热点阅读