用这个命令安装完之后显示成功了,但是为什么导入不了呢
C:\Users\user>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Django
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Django'
2019-07-19 18:42:17
使用--user选项所安装的第三方库的安装路径与使用“pip install xxx”命令的安装路径不同,你首先查看下你所安装的包在哪一个路径下(可在计算机中搜索,但请注意一定在用户的某一个目录下,如:C:\Users\user\AppData\Roaming\Python\Python37\site-packages),然后将这个路径添加到环境变量中即可。
2019-07-22 12:05:27
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧