当前位置:   article > 正文

conda 在断网情况下创建虚拟环境_conda离线创建新环境

conda离线创建新环境

问题: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
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/180095
推荐阅读
相关标签
  

闽ICP备14008679号