更新pip源/anaconda源
2024-08-28 07:10:44
转自 http://blog.csdn.net/u012436149/article/details/66974668
windows
在 c:\user\username\pip\pip.ini
中加入
[global]
index-url=http://mirrors.aliyun.com/pypi/simple
[install]
trusted-host=mirrors.aliyun.com
disable-pip-version-check = true
timeout =
需要创建pip文件夹与pip.ini文件
。
linux(ubuntu)
cd $HOME
mkdir .pip
cd .pip
sudo vim pip.conf
在里面添加
[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com
disable-pip-version-check = true
timeout =
保存即可
更改anaconda源
conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
conda config --set show_channel_urls yes
最新文章
- requirejs:模块加载(require)及定义(define)时的路径小结
- HTTP 错误500.19 -Internal Server Error 错误代码 0x80070021
- Fraction to Recurring Decimal
- 受限玻尔兹曼机(RBM)学习笔记(五)梯度计算公式
- winform学习之-----页面设计-20160523
- [示例]NSEnumerator-使用枚举类型实现数组的逆序输出
- C++例题练习(1)
- [cocos2d]调用sqlite3数据库
- [ActiveX]使用VS2010创建MFC ActiveX工程项目
- unisound_asr 云知声 语音识别 python版接口
- 初探Electron
- 记录python接口自动化测试--把操作excel文件的方法封装起来(第五目)
- html5中viewport与meta详解
- IDEA基于Maven Struts2搭建配置及示例
- 第三百六十四节,Python分布式爬虫打造搜索引擎Scrapy精讲—elasticsearch(搜索引擎)的mapping映射管理
- 剑指offer 08跳台阶
- oracle 表的创建与管理 约束
- CMMI管理体系
- Easy install ryu
- jsp页面都放在web-inf下面说是要防止用户直接访问jsp页面,为么不能直接访问jsp