1、使用镜像安装库的方法——语法格式
语法格式:
pip install 库名 -i 镜像网址文章来源地址https://www.toymoban.com/news/detail-735658.html
如使用豆瓣安装requests库:
pip install requests -i https://pypi.douban.com/simple
2、常用国内镜像
'''
豆瓣
https://pypi.douban.com/simple
清华大学
https://pypi.tuna.tsinghua.edu.cn/simple
中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple
阿里云
https://mirrors.aliyun.com/pypi/simple
'''
文章来源:https://www.toymoban.com/news/detail-735658.html
到了这里,关于python 安装库常用的国内镜像、使用镜像安装库的方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!