当前位置:网站首页>Record of problems caused by PIP upgrade damage
Record of problems caused by PIP upgrade damage
2022-07-29 07:46:00 【Happy DAGO】
upgrade pip after , Something unusual happened , As a result, no pip Related operations . I found a lot of tutorials on the Internet , All invalid , Later, after repeated exploration , Problem solved .
Try to plan 1:
The running prompt does not pip modular
PS C:\Users\86176> pip install --upgrade pip
Traceback (most recent call last):
File "d:\program files\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\program files\python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Program Files\Python38\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
terms of settlement
perform python -m ensurepip,python -m pip install --upgrade pip that will do
PS C:\Users\86176> python -m ensurepip
Looking in links: c:\Users\86176\AppData\Local\Temp\tmpjplwmax8
Requirement already satisfied: setuptools in d:\program files\python38\lib\site-packages (49.2.1)
Processing c:\users\86176\appdata\local\temp\tmpjplwmax8\pip-20.2.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-20.2.1
PS C:\Users\86176>
PS C:\Users\86176> python -m pip install --upgrade pip
Looking in indexes: https://pypi.douban.com/simple
Collecting pip
Using cached https://pypi.doubanio.com/packages/7c/02/9ab8b431aca1b46fcc1ac830a5870a28a12ba1abfa681904b1d2da876a86/pip-21.2.1-py3-none-any.whl (1.6 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.1
Uninstalling pip-20.2.1:
Successfully uninstalled pip-20.2.1
Successfully installed pip-21.2.1
test
PS C:\Users\86176> pip list
programme 1 Invalid validation
programme 2
Find the previous installation OK Version of , Get into D:\Python\Lib\site-packages\ route , find pip and pip-22.1.2.dist-info Catalog , Copy it to the corresponding path , Problem solving .
边栏推荐
猜你喜欢
Multi thread shopping
Android interview question | how to write a good and fast log library?
Actual measurement of boot and pH pins of buck circuit
监听页面滚动位置定位底部按钮(包含页面初始化定位不对鼠标滑动生效的解决方案)
RoBERTa:A Robustly Optimized BERT Pretraining Approach
Technology sharing | quick intercom integrated dispatching system
Sqlmap (SQL injection automation tool)
Monitor the bottom button of page scrolling position positioning (including the solution that page initialization positioning does not take effect on mouse sliding)
Solve the problem that CSDN cannot publish blog due to unknown copyright
207. Curriculum
随机推荐
写点dp
【暑期每日一题】洛谷 P4414 [COCI2006-2007#2] ABC
Jianmu continuous integration platform v2.5.2 release
[untitled] format save
ef core 读取text类型慢_ef core读取大字符串字段慢
FLink CDC 的mysql connector中,mysql的字段是varbinary, 官方
Do you want to meet all the needs of customers
Segger's hardware anomaly analysis
Dilworth theorem
How to get to the deep-water area when the industrial Internet goes?
Measured waveform of boot capacitor short circuit and open circuit of buck circuit
Write some DP
Technology sharing | quick intercom integrated dispatching system
[summer daily question] Luogu P6500 [coci2010-2011 3] zbroj
【暑期每日一题】洛谷 P6500 [COCI2010-2011#3] ZBROJ
[summer daily question] Luogu p4413 [coci2006-2007 2] R2
技术分享| 快对讲综合调度系统
Joseph Ring problem
OA项目之会议通知(查询&是否参会&反馈详情)
LANDSCAPE