当前位置:网站首页>conda 修改镜像源
conda 修改镜像源
2022-06-25 17:20:00 【青灯剑客】
1.添加清华看镜像源
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 --set show_channel_urls yes
添加目前可用的中科大镜像源
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
具体的修改文件见当前用户目录下创建 .condarc 文件,可以查看更换源前后该文件内容的变化。
2.恢复原镜像
conda config --remove-key channels
3.删除镜像
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
4.后面遇到问题了
2022过后再次使用这个链接,发现报错了。报错了!于是,查资料,看了下面的两位大佬的博客,才发现了奥秘。
(1)Anaconda建立新的环境,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url … 解决过程
(2)conda添加镜像源_conda 正确添加国内源
于是,得出修改代码如下:
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/
conda config --set show_channel_urls yes
5.conda的常用命令
conda create -n your_env_name python=3.6
conda activate 环境名
conda deactivate
conda clean --all #删除缓存
conda config --show #查看已经安装过的镜像源
conda config --remove channels url #删除镜像地址url
conda remove -n rcnn --all 删除环境
6.重命名环境
conda 其实没有重命名指令,实现重命名是通过 clone 完成的.
第一步:先 clone 一份 new name 的环境
conda create -n tf --clone rcnn
第二步:删除old环境
conda remove -n rcnn --all
conda info -e #查看conda环境
边栏推荐
- Is Guotai Junan Securities reliable? Is it legal? Is it safe to open a stock account?
- 2021年5月云南省网络空间安全比赛赛题复盘
- College Students' hot summer exchange, Rog star product phantom 16 flipped version / phantom 13 / phantom x appointment
- 求满足条件的最长子串长度
- 什么是公链开发?公链开发项目有哪些?
- 国泰君安证券靠谱吗?是否合法?开股票账户安全吗?
- STM32 hardware error hardfault_ Handler processing method
- 学习太极创客 — MQTT(一)MQTT 是什么
- The role of the project manager in the project
- [efficiency] another note artifact is open source!
猜你喜欢
随机推荐
【Matlab】曲线拟合
Interrupt operation: abortcontroller learning notes
n-queens problem
Sword finger offer II 035 Minimum time difference
【UVM实战 ===> Episode_2 】~ VIP、VIP的开发、VIP的发布
Singleton mode application
杰理之adc_get_voltage 函数获取电压值不准【篇】
Old mobile phones turn waste into treasure and serve as servers
Sentinel哨兵机制
Uncover ges super large scale graph computing engine hyg: Graph Segmentation
【Matlab】数据统计分析
try with resource
The second round of Yunnan Cyberspace Security competition in May 2021
golang list to string
Introduction to the container of() function
Precautions for the use of Jerry's wake-up mouth [chapter]
Redis 的PSYNC命令
IDEA全局搜索汉字[通俗易懂]
golang sort slice int
宝藏又小众的国画3d材质贴图素材网站分享

![Jerry's system clock setting is reset or invalid [chapter]](/img/c6/ee6b287af7d309f98abda8e11d674c.png)






