- 安装指定版本软件
pip install robotframework==2.8.7
- pip安装离线包
1.建立放置python包的目录
mkdir py_packages
2.使用下面命令在有网络的环境下下载相关python包
pip install --download ./py_packages ansible (这里以安装ansible为例)
3.把包拷贝到离线环境下执行下面命令:
pip install --no-index --find-links=file:./py_packagesansible
这样就可以安装成功了。
- pip bug解忧
pip安装python包出现
Cannot fetch index base URL http://pypi.python.org/simple/
创建文件~/.pip/pip.conf,并添加一下内容
[global]
index-url=http://pypi.douban.com/simple/
- pip调优
refer
https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
refer
https://www.cnblogs.com/michael-xiang/p/5690746.html
http://blog.csdn.net/xiefp/article/details/75007538
https://www.zhihu.com/question/47003185
pandas install
https://www.cnblogs.com/lxmhhy/p/6029465.html