当前位置:网站首页>SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
2022-07-31 04:12:00 【no envy】
Solved: After accidentally uninstalling pip (two ways to manually install pip)
Article table of contents
Error reporting
A question raised by a fan group friend, how to reinstall pip if I accidentally uninstalled it?

Check if pip is really uninstalled
1. window电脑点击win键+ R,输入:cmd
2. Use the command pip --version to determine whether it is really uninstalled:
If there is no version number, it means that the pip tool is not installed, please see the solution below
Solution 1 (complex)
Safely download the Python script to install pip using the command line bootstrap logic
pip installation script download address: get-pip.py
1. Open terminal cmd, cd to the directory of your script:
Enter the drive letter to be entered, take E drive as an example, enter
E:.
Enter the specified file, enter
cd E:\Python learning.
2. Run the installation script:
python get-pip.py
3. Double check if pip is installed:

Solution 2 (simple and recommended)
The Python environment comes with an ensurepip module, which can install pip in the Python environment.
1. Enter the following command in the cmd console:
py -m ensurepip --upgrade2. Double check if pip is installed:

边栏推荐
猜你喜欢

Recursive implementation of the Tower of Hanoi problem

Web container and IIS --- Middleware penetration method 1

BP神经网络

SIP Protocol Standard and Implementation Mechanism

Port inspection steps - 7680 port analysis - Dosvc service

pom文件成橘红色未加载的解决方案

【小土堆补充】Pytorch学习笔记_Anaconda虚拟环境使用

How Zotero removes auto-generated tags
![[Swift]自定义点击APP图标弹出的快捷方式](/img/d4/84b237995fc3d3700916eb57f6670d.png)
[Swift]自定义点击APP图标弹出的快捷方式

Know the showTimePicker method of the basic components of Flutter
随机推荐
[C language] General method of expression evaluation
Why don't you programmers make a living off your own projects?And have to work for someone else?
Just debuted "Fight to Fame", safety and comfort are not lost
安全20220709
Safety 20220722
Redis counts new and retained users
volatile内存语义以及实现 -volatile写和读对普通变量的影响
No qualifying bean of type question
Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)
Safety 20220715
(树) 最近公共祖先(LCA)
【小土堆补充】Pytorch学习笔记_Anaconda虚拟环境使用
手把手实现图片预览插件(三)
Port inspection steps - 7680 port analysis - Dosvc service
The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
Day32 LeetCode
Bubble sort, selection sort, insertion sort, binary search directly
[Paper reading] Mastering the game of Go with deep neural networks and tree search
IDEA common shortcut keys and plug-ins
(八)Math 类、Arrays 类、System类、Biglnteger 和 BigDecimal 类、日期类