python第三方库的安装pip的使用与换源(解决pip下载速度满)

python和其余语言同样,也有大量的第三方库
在安装python时默认都会安装pip,安装了pip后
在cmd.exe下能够运行pippython

安装库

pip install 库的名字

换源

由于PyPi地址在国外,国内访问速度慢有些地方甚至访问不了,把镜像源换为国内地址速度简直飞起阿里云

国内一些经常使用的软件源以下:
阿里云:https://mirrors.aliyun.com/pypi/simple/
中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣:https://pypi.douban.com/simple/
清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学:https://pypi.mirrors.ustc.edu.cn/simple/code

以阿里云镜像源为例ip

pip install 库的名字 -i https://mirrors.aliyun.com/pypi/simple/

查看已安装的库

pip list

卸载库

pip uninstall 库的名字
相关文章
相关标签/搜索