python pip更换国内镜像和常用pip包管理详细讲解(已爬坑)

pip常用命令和软件管理

查看版本号

pip -V

查看已安装的软件

pip list

显示已安装软件具体信息

pip show pip

更新pip到最新版本

pip install pip -U
python -m pip install --upgrade pip

更新软件版本

pip install --upgrade pandas numpy pillow

指定源安装软件

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib -U

指定whl文件安装

pip install tensorflow.whl

设置国内源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

临时升级

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

搜索软件

pip search tensorflow

猜你喜欢

转载自blog.csdn.net/myhes/article/details/106596968