当前位置:网站首页>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
边栏推荐
猜你喜欢
【 original 】 VMware Workstation implementation Openwrt soft routing, the ESXI, content is very detailed!
RTP
Oracle数据库常用函数总结
批量转换经纬度的网页实现方法
备战金三银四:如何成功拿到阿里offer(经历+面试题+如何准备)
【报错记录】解决华擎J3455-ITX不插显示器无法开机的问题
自启服务mock联调跨域问题
真香!肝完Alibaba这份面试通关宝典,我成功拿下今年第15个Offer
聚类了解
Electron application development best practices
随机推荐
antd的Table列选择、列拓展
工作--今天的学习
Mysql多表查询
乘积量化(PQ)
snmp++编译错误问题解决方法
Unix Environment Programming Chapter 14 14.4 I/O Multiplexing
xmms播放器加了播放列表的管理功能
强化学习 (Reinforcement Learning)
学习NET-SNMP之二-----------VisualStudio编译Net-SNMP
xmms的歌词显示及音量控制OK
对话跨国消费品牌DPO:数据安全合规从何做起?8.11直播见!
UNIX Environment Programming Chapter 15 15.6 XSI IPC
编解码(seq2seq)+注意机制(attention) 详细讲解
ESIM(Enhanced Sequential Inference Model)- 模型详解
力扣(LeetCode)220. 存在重复元素 III(2022.08.08)
相伴成长,彼此成就 用友U9 cloud做好制造业数智化升级的同路人
OpengGL绘制立方体的三种方法
MySQL和MyEclipse的数据库连接操作
WUSTOJ:n个素数构成等差数列
caffe ---make all编辑出错