当前位置:网站首页>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:

边栏推荐
- Win10 CUDA CUDNN installation configuration (torch paddlepaddle)
- 扫雷游戏(c语言写)
- MySQL数据库必会的增删查改操作(CRUD)
- Safety 20220709
- 【AUTOSAR-RTE】-4-Port和Interface以及Data Type
- [C language] General method of expression evaluation
- 安全20220709
- MySQL基础操作
- $parent/$children 与 ref
- 《DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction》论文笔记
猜你喜欢

No qualifying bean of type 问题
![[Paper reading] Mastering the game of Go with deep neural networks and tree search](/img/4f/899da202e13bd561bbfdbaeebe4d2e.jpg)
[Paper reading] Mastering the game of Go with deep neural networks and tree search

识Flutter 基本组件之showTimePicker 方法

扫雷游戏(c语言写)

「 每日一练,快乐水题 」1331. 数组序号转换

(5) final, abstract class, interface, inner class

Exsl file preview, word file preview web page method

VScode+ESP32快速安装ESP-IDF插件

The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'

$attrs/$listeners
随机推荐
SQL Interview Questions (Key Points)
Safety 20220718
MySQL数据库必会的增删查改操作(CRUD)
安全20220712
BUG destroyer!!Practical debugging skills are super comprehensive
Basic knowledge of mysql (2)
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
el-image tag doesn't work after binding click event
高等数学---第九章二重积分
MySQL修改root账号密码
三子棋的代码实现
qlib架构
The third is the code to achieve
log level and print log note
【AUTOSAR-RTE】-4-Port and Interface and Data Type
mysql数据库安装(详细)
Redis counts new and retained users
「 每日一练,快乐水题 」1331. 数组序号转换
BUG消灭者!!实用调试技巧超全整理
Safety 20220715