当前位置:网站首页>已解决:不小心卸载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是否安装:
边栏推荐
- Observer pattern
- RESTful api接口设计规范
- Smartcom Programming Level 4 - Magic Academy Lesson 6
- 安全20220715
- BUG definition of SonarQube
- els 方块向左移动条件判断
- Postgresql 15 source code analysis (5) - pg_control
- $parent/$children 与 ref
- 识Flutter 基本组件之showTimePicker 方法
- A brief introduction to the showDatePicker method of the basic components of Flutter
猜你喜欢
Zotero如何删除自动生成的标签
Just debuted "Fight to Fame", safety and comfort are not lost
(四)递归、可变参数、访问修饰符、理解 main 方法、代码块
浅识Flutter 基本组件之CheckboxListTile组件
Notes on the establishment of the company's official website (6): The public security record of the domain name is carried out and the record number is displayed at the bottom of the web page
大小端模式
Use of QML
Learning DAVID Database (1)
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
Component pass value provide/inject
随机推荐
(Line segment tree) Summary of common problems of basic line segment tree
IDEA comment report red solution
RESTful api interface design specification
LeetCode simple problem to find the subsequence of length K with the largest sum
Observer pattern
els 方块向左移动条件判断
type_traits metaprogramming library learning
[shell basics] determine whether the directory is empty
Distributed locks and three implementation methods
Web container and IIS --- Middleware penetration method 1
微软 AI 量化投资平台 Qlib 体验
$parent/$children 与 ref
Analysis summary - self-use
C语言从入门到如土——数据的存储
Can‘t load /home/Iot/.rnd into RNG
Redis counts new and retained users
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
Automation strategies for legacy systems
【AUTOSAR-RTE】-4-Port and Interface and Data Type
C language from entry to such as soil, the data store