【运行报错】Anaconda升级工具包出错:Collecting package metadata (current_repodata.json): failed

博客内容讲述了在尝试使用conda升级所有包时遇到的HTTP连接失败问题,错误源于SSL模块不可用。解决方法是将Anaconda3/Library/bin目录下的libcrypto-1_1-x64.dll和libssl-1_1-x64.dll文件复制到Anaconda3/DLLs目录下。执行升级操作后,虽然部分包被更新和降级,但最终因环境无写权限导致交易验证失败。
摘要由CSDN通过智能技术生成

1. 报错信息:

Collecting package metadata (current_repodata.json): failed

C:\Users\APandaThief>conda upgrade --all
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

2. 原因分析:

3. 解决方法:

  • 把路径Anaconda3/Library/bin下面的文件复制到路径Anaconda3/DLLs下:
  1. libcrypto-1_1-x64.dll
  2. libssl-1_1-x64.dll

再次执行:

C:\Users\APandaThief>conda upgrade --all
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    backports.functools_lru_cache-1.6.4|     pyhd3eb1b0_0           9 KB
    backports.tempfile-1.0     |     pyhd3eb1b0_1          11 KB
    conda-4.10.3               |   py37haa95532_0         2.9 MB
    conda-build-3.21.5         |   py37haa95532_0         549 KB
    conda-package-handling-1.7.3|   py37h8cc25b3_1         721 KB
    future-0.18.2              |           py37_1         646 KB
    ------------------------------------------------------------
                                           Total:         4.8 MB

The following packages will be UPDATED:

  backports.functoo~                               1.5-py_2 --> 1.6.4-pyhd3eb1b0_0
  conda                                       4.7.12-py37_0 --> 4.10.3-py37haa95532_0
  conda-build                                 3.18.9-py37_3 --> 3.21.5-py37haa95532_0
  conda-package-han~                   1.6.0-py37h62dcd97_0 --> 1.7.3-py37h8cc25b3_1
  future                                      0.17.1-py37_0 --> 0.18.2-py37_1

The following packages will be DOWNGRADED:

  backports.tempfile                               1.0-py_1 --> 1.0-pyhd3eb1b0_1


Proceed ([y]/n)? y


Downloading and Extracting Packages
future-0.18.2        | 646 KB    | ############################################################################ | 100%
conda-4.10.3         | 2.9 MB    | ############################################################################ | 100%
conda-package-handli | 721 KB    | ############################################################################ | 100%
backports.tempfile-1 | 11 KB     | ############################################################################ | 100%
conda-build-3.21.5   | 549 KB    | ############################################################################ | 100%
backports.functools_ | 9 KB      | ################################################################################################################################################################################################# | 100%
Preparing transaction: done
Verifying transaction: failed

EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
  environment location: C:\ProgramData\Anaconda3


  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值