安装指定版本的库
pip install robotframework==2.8.7
用pip查看要安装的python包的所有版本
pip index versions [your python module name]
查看所有已安装库
pip list
查看某个指定的库
pip show xxx
例如:
pip show pandas
卸载某个库
pip uninstall pandas
更换镜像源
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣:http://pypi.douban.com/simple
阿里:http://mirrors.aliyun.com/pypi/simple
中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple
临时使用镜像源下载numpy:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy
永久更换
pip pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple