未找到 PYTHONPATH 环境变量

未找到 PYTHONPATH 环境变量

我最近将 ubuntu 从 14.04 更新到了 16.04,我的 PYTHONPATH 显然已经被破坏了,

Traceback (most recent call last):
File "./manage.py", line 17, in <module>
"Couldn't import Django. Are you sure it's installed and "
ImportError: 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?

例如,当我尝试在 DJANGO 中运行我的项目时,我抛出了此错误。我该如何重建环境变量?

相关内容