通过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?"
好,百度一番,什么virtualenv 啊,升级Django啊都没用,最后把Django路径加到环境变量,如
:
D:\Python3.0\Lib\site-packages\django