当前位置:网站首页>pip只下载不安装
pip只下载不安装
2022-07-06 20:16:00 【人生匆匆】
首先,python -m pip会使用您指定为python的Python解释器来执行pip。因此,/usr/bin/python3.7 -m pip表示您正在执行位于/usr/bin/python3.7的解释器的pip
1、只下载,不安装
python -m pip download -d /home/packs setuptools==33.1.1 #下载setuptools==33.1.1模块,在/home/packs目录下
2、安装
python -m pip install setuptools==33.1.1 #安装setuptools==33.1.1模块,需要有网环境
python -m pip install --no-index --find-links=/home/packs setuptools==33.1.1 #在/home/packs找到setuptools==33.1.1模块包进行安装
echo 'setuptools==33.1.1' >requirements.txt #选择需要安装的第三方模块
python -m pip install --no-index --find-links=/home/packs -r requirements.txt #通过requirements.txt里面的名称,在/home/packs找到对应的模块包进行安装
3、卸载
可加版本号,或者不加
python -m pip uninstall setuptools
边栏推荐
- Household appliance industry under the "retail is king": what is the industry consensus?
- HDU ACM 4578 Transformation-> Segment tree - interval change
- Shangsilicon Valley JVM Chapter 1 class loading subsystem
- Flink task exit process and failover mechanism
- leetcode
- [dream database] add the task of automatically collecting statistical information
- Uniapp adaptation problem
- Oracle connection pool is not used for a long time, and the connection fails
- Matlab Error (Matrix dimensions must agree)
- HDU 4337 King Arthur' S Knights it outputs a Hamiltonian circuit
猜你喜欢
随机推荐
[Dameng database] after backup and recovery, two SQL statements should be executed
Opencv environment, and open a local PC camera.
The version control of 2021 version is missing. Handling method
Le tube MOS réalise le circuit de commutation automatique de l'alimentation principale et de l'alimentation auxiliaire, et la chute de tension "zéro", courant statique 20ua
IDEA重启后无法创建Servlet文件的解决方案
源代码保密的意义和措施
How to analyze fans' interests?
Flink task exit process and failover mechanism
尚硅谷JVM-第一章 类加载子系统
Uniapp adaptation problem
Household appliance industry under the "retail is king": what is the industry consensus?
Stored procedures and functions (MySQL)
腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
装饰设计企业网站管理系统源码(含手机版源码)
Variables, process control and cursors (MySQL)
Simple bubble sort
Don't you know the relationship between JSP and servlet?
树莓派设置wifi自动连接
The first symposium on "quantum computing + application of financial technology" was successfully held in Beijing
Error: could not find a version that satisfies the requirement xxxxx (from versions: none) solutions