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

【运行报错】Anaconda升级工具包出错:Collecting package metadata (current

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

【运行报错】Anaconda升级工具包出错:Collecting package metadata (current

1. 报错信息:

Collecting package metadata (current_repodata.json): failed

C:UsersAPandaThief>conda upgrade --all
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.

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:UsersAPandaThief>conda upgrade --all
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:ProgramDataAnaconda3


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:ProgramDataAnaconda3


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

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

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