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

边栏推荐
- type_traits metaprogramming library learning
- Safety 20220718
- 《DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction》论文笔记
- 已解决:不小心卸载pip后(手动安装pip的两种方式)
- 安全20220722
- interprocess communication
- 【AUTOSAR-RTE】-5-Explicit(显式)和Implicit(隐式) Sender-Receiver communication
- 「 每日一练,快乐水题 」1331. 数组序号转换
- Postgresql 15 source code analysis (5) - pg_control
- C语言从入门到如土——数据的存储
猜你喜欢

Thinking about data governance after Didi fines

How Zotero removes auto-generated tags

$attrs/$listeners

微信小程序使用云函数更新和添加云数据库嵌套数组元素

MySQL数据库必会的增删查改操作(CRUD)

三子棋的代码实现

The application and practice of mid-to-platform brand advertising platform

IIR filter and FIR filter

Port inspection steps - 7680 port analysis - Dosvc service
![[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
随机推荐
安全20220715
MySQL模糊查询可以使用INSTR替代LIKE
MySQL 8.0.30 GA
The BP neural network
微软 AI 量化投资平台 Qlib 体验
关于出现大量close_wait状态的理解
已解决(最新版selenium框架元素定位报错)NameError: name ‘By‘ is not defined
errno error code and meaning (Chinese)
(5) final, abstract class, interface, inner class
Pytest电商项目实战(上)
强化学习:从入门到入坑再到拉屎
three.js 制作3D相册
慧通编程第4关 - 魔法学院第6课
endian mode
Mysql 45 study notes (twenty-four) MYSQL master-slave consistency
C语言表白代码?
识Flutter 基本组件之showTimePicker 方法
VScode+ESP32快速安装ESP-IDF插件
Win10 CUDA CUDNN installation configuration (torch paddlepaddle)
The third is the code to achieve