当前位置:网站首页>已解决:不小心卸载pip后(手动安装pip的两种方式)
已解决:不小心卸载pip后(手动安装pip的两种方式)
2022-07-31 03:50:00 【无 羡ღ】
已解决:不小心卸载pip后(手动安装pip的两种方式)
报错问题
一个粉丝群的小伙伴提出的问题,不小心卸载了pip怎么重新安装呢?
检查pip是否真的被卸载了
1. window电脑点击win键+ R
,输入:cmd
2. 通过命令 pip --version
来判断是否真的被卸载了:
如果没有出现版本号表示没有安装pip工具,就请看下面解决方法
解决方法1(复杂)
安全下载Python脚本,使用命令行引导逻辑来安装pip
pip安装脚本下载地址:get-pip.py
1. 打开终端cmd,cd切换至你脚本的目录:
输入要进入的盘符,以E盘为例,输入
E:
。进入指定文件,输入
cd E:\Python学习
。
2. 运行安装脚本:
python get-pip.py
3. 再次检查pip是否安装:
解决方法2(简单推荐使用)
Python环境自带了一个ensurepip模块,可以在Python环境中安装pip。
1. cmd控制台输入以下命令:
py -m ensurepip --upgrade
2. 再次检查pip是否安装:
边栏推荐
- Pytest电商项目实战(上)
- (4) Recursion, variable parameters, access modifiers, understanding main method, code block
- els block to the left to move the conditional judgment
- Safety 20220715
- IDEA常用快捷键与插件
- Component pass value provide/inject
- 【CocosCreator 3.5】CocosCreator get network status
- RESTful api接口设计规范
- Redis 使用 sorted set 做最新评论缓存
- Day32 LeetCode
猜你喜欢
Thinking about data governance after Didi fines
Zotero如何删除自动生成的标签
IIR filter and FIR filter
IDEA comment report red solution
[Swift] Customize the shortcut that pops up by clicking the APP icon
【小土堆补充】Pytorch学习笔记_Anaconda虚拟环境使用
type_traits metaprogramming library learning
Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
Detailed explanation of TCP (2)
[Compilation principle] Design principle and implementation of recursive descent parsing
随机推荐
(4) Recursion, variable parameters, access modifiers, understanding main method, code block
Database implements distributed locks
[C language] General method of expression evaluation
Postgresql 15 source code analysis (5) - pg_control
The application and practice of mid-to-platform brand advertising platform
(Line segment tree) Summary of common problems of basic line segment tree
Day32 LeetCode
识Flutter 基本组件之showTimePicker 方法
自己的一些思考
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
How to develop a high-quality test case?
errno error code and meaning (Chinese)
Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
浅识Flutter 基本组件之showDatePicker方法
els 方块向左移动条件判断
《DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction》论文笔记
Learning DAVID Database (1)
A brief introduction to the CheckboxListTile component of the basic components of Flutter
Bubble sort, selection sort, insertion sort, binary search directly