pip、conda源更换为清华源、查看源、删除源
一、pip
使用pip默认的镜像在国外,网络连接较差,下载速度比较慢
D:\pythonProject3\Django>pip install Django==2.1.3
Collecting Django==2.1.3Downloading Django-2.1.3-py3-none-any.whl (7.3 MB)|█████████████ | 3.0 MB 15 kB/s eta 0:04:46
ERROR: Operation cancelled by user
1、永久使用pip源
此时,我们可以把源改为清华源,具体操作如下:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
如果set多次,似乎只能保存最后一次set的镜像源。
2、临时更换pip源
如果仅是临时更换可以使用以下命令
pip install torch -i https://pypi.tuna.tsinghua.edu.cn/simple
此时,我们再用pip安装软件就会比较快了
3、查看pip源
pip config list
4、删除pip源
pip config unset global.index-url
二、conda
1、添加源
清华镜像
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
添加镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
2、删除源
conda config --remove-key channels
3、查看现在用的是哪些源
conda config --show channels
也可以使用
conda config --show-sources
参考资料:
pip和conda添加和删除镜像源
pip源更换为清华源
【python】pip默认源更换为清华镜像
PyPI 镜像使用帮助
pip 查看和配置源
在conda中添加清华镜像
pip、conda源更换为清华源、查看源、删除源相关推荐
- pip源更换为清华源
使用pip默认的镜像在国外,网络连接较差,下载速度比较慢 D:\pythonProject3\Django>pip install Django==2.1.3 Collecting Django ...
- centos安装软件【google浏览器,QQ】【拷贝旧的文件源作为备份】【软件源更换为清华源】
centos7.8(2003)安装google浏览器[2020-8-26] 用linux自带浏览器打开google网站 自动识别当前系统的安装版本 https://www.google.cn/chro ...
- pip源更换为清华源_kali2020更换国内的源
kali2020更换国内的源 博客说明 文章所涉及的资料来自互联网整理和个人总结,意在于个人学习和经验汇总,如有什么地方侵权,请联系本人删除,谢谢! 说明 在使用kali的时候总是很慢,所以一般使用l ...
- Ubuntu18.04中如何更换为清华的镜像源
Ubuntu 的软件源配置文件是 /etc/apt/sources.list.在修改之前,先将系统自带的该文件做个备份,将该文件替换为清华源官网提供的内容,即可使用 TUNA 的软件源镜像.最重要的是 ...
- conda 换成清华的源_[mcj]conda设置清华源以及更换删除源|conda常用命令集锦
全文包括: 显示目前使用的源channel 增加channel 删除channel 其他命令 1 显示channel: 首先,conda config --show能够显示出所有conda的confi ...
- windows 修改(pip/conda)镜像源
前言 本文仅介绍了 Windows 环境下的 pip 和 conda 的镜像源修改方法,linux系统请移步主页另一篇博文. 1.什么是镜像源? 国内的下载资源,国外源pip install或者con ...
- Ubuntu apt-get和pip源更换
Ubuntu apt-get和pip源更换 更新数据源为国内,是为了加速安装包的增加速度. 更换apt-get数据源 输入:sudo -s切换为root超级管理员: 执行命令:vim /etc/apt ...
- anaconda虚拟环境中conda,pip快速换源/显示源/删除源
conda 换清华源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ cond ...
- Python 技术篇-pip安装的python库缓存位置查看方法,如何查看python库源码
用 pip install xxx 安装库时,pip 把库缓存在了:C:\Users\Administrator\AppData\Local\pip\cache, 我的用户是管理员,所以是 Admin ...
最新文章
- 如何使您的Kotlin Android动画可访问
- SQL分页语句(转)
- 径向基神经网络(实例故障分类)
- 【项目管理】影响项目裁剪主要属性
- Cannot fit requested classes in a single dex file. Try supplying a main-dex list.
- c mysql存储过程 out_MySQL存储过程带in和out参数
- java osg_java,osg学习心得
- ipvs,ipvsadm的安装及使用
- 【SpringBoot】开启热部署(jsp 页面热部署、devtools 全局热部署)
- hudson添加批处理编译命令的注意事项
- JavaScript数据类型之算术运算符(7)
- pthread_cond_signal只能唤醒已经处于pthread_cond_wait的线程
- Elasticsearch5.X 搜索引擎框架 安装配置及analysis-ik中文分词插件安装
- Java下一代高并发技术——虚拟线程“JEP 425: Virtual Threads (Preview)”
- STM8L051F3_0d_基础介绍
- java pdf 转tif_JAVA中 PDF文件转成TIFF文件的2种方式
- 室友哪些不该看的东西被你无意之间看到了?
- Struts2项目实战 微云盘(七):文件上传下载
- 【Codeforces633H】Fibonacci-ish II
- 反双曲余弦 双曲余弦_不要“聪明”:双曲括号反模式