擅长:python、mysql、java
<p>问题是您没有根据“堆栈跟踪链接”激活虚拟环境。我认为您出现错误的原因是您已在虚拟环境中安装了Django,但正在系统中(即虚拟环境之外)运行该程序。
如果使用“VirtualEnvironment”创建虚拟环境,请导航到环境所在的目录(文件夹),然后运行<code>Name_of_your_environment\Scripts\activate</code>,然后运行<code>python manage.py runserver</code></p>