pip常见安装用法

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-29 16:43:37

pip常见安装用法

普通安装

pip uninstall tensorflow
pip install tensorflow

如果下载慢的话可以参考以下镜像源:

例如:


这样就会从清华这边的镜像去安装tensorflow库。

国内源:

清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:[link] http://pypi.douban.com/simple/

指定版本安装

windows指定版本安装时==
liunx指定版本安装时=

//1.指定版本升级
pip install –upgrade –ignore-installed  –upgrade tensorflow==1.7.0
pip install robotframework==2.8.7

例如安装 flake8 换源 加上 --user 就安装成功了

pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple flake8    

https://www.cnblogs.com/lvsling/p/8672404.html
pip自身更新

python -m pip install --upgrade pip
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!