pip 常用命令总结
pip 常用命令参考链接:https://www.cnblogs.com/BlueSkyyj/p/8268621.html
pip原镜像安装:
pip install some-package
pip install -r requirements.txt
requirements.txt的要求:
通过使用== >= <= > <来指定版本,不写则安装最新版
requirements.txt内容格式为:
APScheduler==2.1.2
Django==1.5.4
MySQL-Connector-Python==2.0.1
MySQL-python==1.2.3
PIL==1.1.7
South==1.0.2
django-grappelli==2.6.3
django-pagination==1.0.7
pip清华镜像镜像安装:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
pip阿里镜像镜像安装:
pip install -i https://mirrors.aliyun.com/pypi/simple some-package
pip本地安装:
pip install <目录>/<文件名>
pip install --use-wheel --no-index --find-links=wheelhouse/ <包名>
pip升级包:
pip install -U some-package
pip install some-package --upgrade
升级pip:
python -m pip install --upgrade pip
pip卸载包:
pip uninstall some-package
pip uninstall -r requirements.txt
pip查看包信息:
pip show some-package