我爱编程

pip

2018-03-05  本文已影响18人  咖啡大象不含咖啡
pip install robotframework==2.8.7

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安装python包出现
Cannot fetch index base URL http://pypi.python.org/simple/

创建文件~/.pip/pip.conf,并添加一下内容

[global]  
index-url=http://pypi.douban.com/simple/

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

上一篇 下一篇

猜你喜欢

热点阅读