当前位置:网站首页>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 --upgrade
2. Double check if pip is installed:
边栏推荐
- Mysql 45 study notes (twenty-four) MYSQL master-slave consistency
- Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)
- qlib架构
- No qualifying bean of type question
- IDEA常用快捷键与插件
- SIP Protocol Standard and Implementation Mechanism
- errno error code and meaning (Chinese)
- Mysql 45 study notes (twenty-five) MYSQL guarantees high availability
- (5) final, abstract class, interface, inner class
- errno错误码及含义(中文)
猜你喜欢
已解决(最新版selenium框架元素定位报错)NameError: name ‘By‘ is not defined
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
[C language] Three-pointed chess (classic solution + list diagram)
The application and practice of mid-to-platform brand advertising platform
Basic knowledge of mysql (2)
Web container and IIS --- Middleware penetration method 1
微信小程序使用云函数更新和添加云数据库嵌套数组元素
mysql数据库安装(详细)
postgresql 15源码浅析(5)—— pg_control
C language confession code?
随机推荐
浅识Flutter 基本组件之CheckboxListTile组件
LeetCode每日一练 —— 138. 复制带随机指针的链表
端口排查步骤-7680端口分析-Dosvc服务
qlib自动化quant
Regarding the primary key id in the mysql8.0 database, when the id is inserted using replace to be 0, the actual id is automatically incremented after insertion, resulting in the solution to the repea
MySQL基础操作
ClickHouse: Setting up remote connections
three.js make 3D photo album
C language from entry to such as soil, the data store
Daily practice of LeetCode - palindrome structure of OR36 linked list
[AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
interprocess communication
【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
(树) 最近公共祖先(LCA)
What is a system?
Basic knowledge of mysql (2)
BUG消灭者!!实用调试技巧超全整理
「 每日一练,快乐水题 」1331. 数组序号转换
mysql基础知识(二)
(5) final, abstract class, interface, inner class