赞
踩
问题:conda create -n example 创建虚拟环境失败
报错
Solving environment: done
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pk
gs/r/win-64/repodata.json.bz2>
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.
ConnectionError(MaxRetryError(“HTTPSConnectionPool(host=‘repo.anaconda.com’, por
t=443): Max retries exceeded with url: /pkgs/r/win-64/repodata.json.bz2 (Caused
by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x0
000001A00393C88>: Failed to establish a new connection: [Errno 11004] getaddrinf
o failed’,))”,),)
显示配置内容
conda config --show
显示配置文件的路径
conda config --show-sources
c:\users**.condarc
解决方案:
方案一:断网创建
conda create -n example --offline
方案二:复制base 环境
conda create -n example --clone base
作者:万事皆成
链接:https://www.jianshu.com/p/caba68553974
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。