记录安装过程中出现Requirement already satisfied

**记录安装过程中出现Requirement already satisfied: **
原因在之前存在过安装
提示错误信息:
C:\Windows\system32>pip install django -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple
Requirement already satisfied: django in c:\users\sev\appdata\roaming\python\python38\site-packages (4.0)
Requirement already satisfied: backports.zoneinfo in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (0.2.1)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (0.4.2)
Requirement already satisfied: tzdata in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (2021.5)
Requirement already satisfied: asgiref<4,>=3.4.1 in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (3.4.1)
解决的办法是删除错误:
Requirement already satisfied: ~django~需要删除的因为已经存在而阻碍 in ~c:\users\sev\appdata\roaming\python\python38\site-packages (4.0)~此为需要删除的路径
Requirement already satisfied: ~backports.zoneinfo~需要删除的因为已经存在而阻碍 in ~c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (0.2.1)~此为需要删除的路径
Requirement already satisfied: ~sqlparse>=0.2.2~需要删除的因为已经存在而阻碍 in ~c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (0.4.2)~此为需要删除的路径
Requirement already satisfied: ~tzdata~需要删除的因为已经存在而阻碍 in ~c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (2021.5)~此为需要删除的路径
Requirement already satisfied: ~asgiref<4,>=3.4.1~需要删除的因为已经存在而阻碍 in ~c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (3.4.1)~此为需要删除的路径

再次安装既可以【全部如下】:
C:\Windows\system32>pip install --target=C:\Program Files\Python38\Lib\site-packages django
ERROR: Invalid requirement: 'Files\Python38\Lib\site-packages'
Hint: It looks like a path. File 'Files\Python38\Lib\site-packages' does not exist.

C:\Windows\system32>pip install django -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple
Requirement already satisfied: django in c:\users\sev\appdata\roaming\python\python38\site-packages (4.0)
Requirement already satisfied: backports.zoneinfo in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (0.2.1)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (0.4.2)
Requirement already satisfied: tzdata in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (2021.5)
Requirement already satisfied: asgiref<4,>=3.4.1 in c:\users\sev\appdata\roaming\python\python38\site-packages (from django) (3.4.1)

C:\Windows\system32>pip install --target=E:\djangoProject\study django
Collecting django
Using cached Django-4.0.1-py3-none-any.whl (8.0 MB)
Collecting backports.zoneinfo
Using cached backports.zoneinfo-0.2.1-cp38-cp38-win_amd64.whl (38 kB)
Collecting sqlparse>=0.2.2
Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
Collecting asgiref<4,>=3.4.1
Using cached asgiref-3.5.0-py3-none-any.whl (22 kB)
Collecting tzdata
Using cached tzdata-2021.5-py2.py3-none-any.whl (339 kB)
Installing collected packages: tzdata, sqlparse, backports.zoneinfo, asgiref, django
Successfully installed asgiref-3.5.0 backports.zoneinfo-0.2.1 django-4.0.1 sqlparse-0.4.2 tzdata-2021.5

C:\Windows\system32>

新的问题又来了
Traceback (most recent call last):
File "c:\program files\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files\python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)

posted @ 2022-01-28 10:34  zechariah1  阅读(2821)  评论(0编辑  收藏  举报