首页 > 代码库 > pip 修改镜像源为豆瓣源
pip 修改镜像源为豆瓣源
1. 修改配置文件
编辑配置文件,如果没有则新建:
$ vi ~/.pip/pip.conf
添加内容如下:
[global]index-url = https://pypi.doubanio.com/simple
2. 命令行选项
使用 pip 命令安装扩展包时指定源:
$ pip install SQLAlchemy -i https://pypi.doubanio.com/simple
参考链接:
- pip修改官方源为豆瓣源 | cls1991的个人博客
- pip 更换软件镜像源 - 简书
pip 修改镜像源为豆瓣源
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。