大家好,又见面了,我是你们的朋友全栈君。
pip切换镜像源及pip常用命令
pip切换镜像源
国内比较出色的镜像源
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple
方法一:切换镜像源
# 全局设置镜像源地址
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
方法二:从指定镜像源安装包
# 从清华镜像源安装numpy库
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy
pip常用命令
查看版本
pip --version
pip -V
获取帮助
pip --help
搜索包
pip search XXX(包名)
查看已安装的包
pip list
安装/卸载包
pip install/uninstall XXX
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/143815.html原文链接:https://javaforall.net