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
来源:CSDN
作者:gyqJulius_Caesar
链接:https://blog.csdn.net/gyqJulius_Caesar/article/details/97418238