美文网首页
Python配置Django遇到Couldn't import

Python配置Django遇到Couldn't import

作者: AlexFelix | 来源:发表于2017-02-25 10:34 被阅读0次

通过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

相关文章

网友评论

      本文标题:Python配置Django遇到Couldn't import

      本文链接:https://www.haomeiwen.com/subject/sgvgwttx.html