前言:
在PyCharm下使用Anaconda中的Python虚拟环境,创建Django项目时报错,其中Django是使用命令行pip install Django
安装的,报错截图和代码如下:
创建 Django 应用程序时出错: Python 端错误。退出代码: 1,错误: Traceback (most recent call last):
File "C:\Users\suyin\Desktop\restaurant\manage.py", line 22, in <module>
main()
File "C:\Users\suyin\Desktop\restaurant\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\Users\suyin\.conda\envs\restaurant\lib\site-packages\django\core\management\__init__.py", line 419, in execute_from_command_line
utility.execute()
File "C:\Users\suyin\.conda\envs\restaurant\lib\site-packages\django\core\management\__init__.p