【发布时间】:2022-01-02 02:45:28
【问题描述】:
我在我的虚拟环境中安装了 django 也激活了虚拟环境,但它仍然显示这些错误 蟒蛇
from django.urls import path
输出
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS E:\django\project\telusko> & C:/Users/hp/AppData/Local/Programs/Python/Python39/python.exe e:/django/project/telusko/calc/urls.py
Traceback (most recent call last):
File "e:\django\project\telusko\calc\urls.py", line 1, in <module>
from django.urls import path
ModuleNotFoundError: No module named 'django'
PS E:\django\project\telusko>
【问题讨论】:
标签: python django visual-studio-code django-urls virtual-environment