栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

conda不能创建虚拟环境

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

conda不能创建虚拟环境

遇到的问题

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://conda.anaconda.org/u200bu200bu200bu200bu200bu200bhttp://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64'

0、查看conda的配置channels

conda config --show channels

1、恢复默认的配置

conda config --remove-key channels

2、根据conda的运行环境,添加下面三个指令,运行环境的Index of /anaconda/pkgs/main/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

Parent directory/--
linux-32/-2020-11-03 03:01
linux-64/-2022-05-21 20:14
linux-aarch64/-2022-05-21 20:15
linux-armv6l/-2020-03-21 23:30
linux-armv7l/-2020-03-21 23:30
linux-ppc64le/-2022-05-21 20:16
noarch/-2022-05-21 05:47
osx-32/-2017-11-27 11:37
osx-64/-2022-05-21 20:18
osx-arm64/-2022-05-21 20:19
win-32/-2022-05-21 20:20
win-64/-2022-05-21 20:19

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/linux-64

3、关掉ssl验证

conda config --set ssl_verify false

4、删掉默认的配置
conda config --remove channels defaults

5、显示url
conda config --set show_channel_urls true

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/923361.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号