外包精通--ImportError: Couldn't import Django.(pycharm)

2023-07-31 19:32:40 浏览数 (1)

因环境原因重装python,再次打开项目,提示如下报错。

代码语言:txt复制
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a vir
tual environment?

在pycharm的setting中,找如下是否安装Django,按照提示安装即可。

0 人点赞