- 安裝指定版本軟件
pip install robotframework==2.8.7
- pip安裝離線包
1.建立放置python包的目錄
mkdir py_packages
2.使用下面命令在有網(wǎng)絡(luò)的環(huán)境下下載相關(guān)python包
pip install --download ./py_packages ansible (這里以安裝ansible為例)
3.把包拷貝到離線環(huán)境下執(zhí)行下面命令:
pip install --no-index --find-links=file:./py_packagesansible
這樣就可以安裝成功了。
- pip bug解憂
pip安裝python包出現(xiàn)
Cannot fetch index base URL http://pypi.python.org/simple/
創(chuàng)建文件~/.pip/pip.conf盅藻,并添加一下內(nèi)容
[global]
index-url=http://pypi.douban.com/simple/
- pip調(diào)優(yōu)
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