当前位置:网站首页>pip common commands and changing source files
pip common commands and changing source files
2022-08-09 10:45:00 【Fuzzy Pack】
We know:
Command format
pip
's download update command is.: very important
pip install/update/upgrade [optional command] Source location package filename[==version, default latest ]
Explanation
install/update/upgrade
: Choose to download or update or [update with surrounding dependencies].The first two are actions for this package, andupgrada
is not so simple, for example
Note: upgrade is forbidden, use less
$ pip upgrade tensorflow
Many people think this code is just an update of tensorflow
, but it's not. It also includes numpy
and padas
even if you don't know itAll packages are updated to the latest.
2. [optional command]
:
-i: specify the installation source of the library-U: upgrade The package that was already installed will not be installed with a new version without U, and will be updated to the latest version with U.
- Source location
For example, the following example: download from Tsinghua source.
# Install tensorflow from Tsinghua with version number 1.14pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.14.0
- [==version, latest by default]
The above example is to download the 1.14.0 version oftensorflow-gpu
For a big example:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade tensorflow-gpu==1.14.0
边栏推荐
- 【报错记录】解决华擎J3455-ITX不插显示器无法开机的问题
- Umi Hooks
- MNIST机器学习入门
- unix环境编程 第十五章 15.6 XSI IPC
- tensor.eq() tensor.item() tensor.argmax()
- Solve the ali cloud oss - the original 】 【 exe double-click response can't open, to provide a solution
- 在webgis中显示矢量化后的风险防控信息
- 关于anaconda中conda下载包或者pip下载包很慢的原因,加速下载包的方法(无视anaconda版本和环境)
- 乘积量化(PQ)
- 深度学习--循环神经网络(Recurrent Neural Network)
猜你喜欢
上传张最近做的E2用的xmms的界面的截图
商业技术解决方案与高阶技术专题 - 数据可视化专题
一天半的结果——xmms on E2
Shell script combat (2nd edition) / People's Posts and Telecommunications Press Script 2 Validate input: letters and numbers only
深度学习--循环神经网络(Recurrent Neural Network)
【原创】JPA中@PrePersist和@PreUpdate的用法
MySQL索引的B+树到底有多高?
BERT预训练模型(Bidirectional Encoder Representations from Transformers)-原理详解
相关系数计算,热力图绘制,代码实现
可能95%的人还在犯的PyTorch错误
随机推荐
相关系数计算,热力图绘制,代码实现
踩坑scrollIntoView
pip常见命令和更改源文件
autogluon安装,使用指南,代码
今天做了手机播放器的均衡器
[Error record] Solve the problem that ASRock J3455-ITX cannot be turned on without a monitor plugged in
OpengGL绘制立方体的三种方法
1001 害死人不偿命的(3n+1)猜想 (15 分)
2022强网杯WP
Mysql多表查询
【报错记录】解决华擎J3455-ITX不插显示器无法开机的问题
Unix Environment Programming Chapter 15 15.9 Shared Storage
使用cpolar远程连接群晖NAS(创建临时链接)
研发需求的验收标准应该怎么写? | 敏捷实践
通过Doc在MySQL数据库中建表
Unix System Programming Chapter 15 15.2 Pipes
snmp++编译错误问题解决方法
unix环境编程 第十五章 15.3 函数popen和pclose
用Word写代码
Unix Environment Programming Chapter 14 14.8 Memory Mapped I/O