【问题标题】:Creating new Conda env --- CondaVerificationError:The package for openssl is corrupted创建新的 Conda env --- CondaVerificationError:Openssl 的包已损坏
【发布时间】:2019-10-10 13:45:16
【问题描述】:

我正在尝试从 anaconda 提示符创建一个新的 conda 环境。问题是,我得到一个 CondaVerificationError 并且它指向一个损坏的文件。当谈到环境时,我不愿尝试。我最近确实升级了 conda 包,我想那是文件损坏的时候。有了这些错误,它就不允许我创建一个环境。如果有人可以在这里帮助我,我将不胜感激。这是它向我展示的内容......

(base) C:\Users\Nick>conda create --name myenv python=3.7
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\Nick\Anaconda3\envs\myenv

  added / updated specs:
    - python=3.7


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/win-64::ca-certificates-2019.8.28-0
  certifi            pkgs/main/win-64::certifi-2019.9.11-py37_0
  openssl            pkgs/main/win-64::openssl-1.1.1d-he774522_2
  pip                pkgs/main/win-64::pip-19.2.3-py37_0
  python             pkgs/main/win-64::python-3.7.4-h5263a28_0
  setuptools         pkgs/main/win-64::setuptools-41.4.0-py37_0
  sqlite             pkgs/main/win-64::sqlite-3.30.0-he774522_0
  vc                 pkgs/main/win-64::vc-14.1-h0510ff6_4
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.16.27012-hf0eaf9b_0
  wheel              pkgs/main/win-64::wheel-0.33.6-py37_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py37_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: failed

CondaVerificationError: The package for openssl located at C:\Users\Nick\Anaconda3\pkgs\openssl-1.1.1d-he774522_2
appears to be corrupted. The path 'Library/ct_log_list.cnf.dist'
specified in the package manifest cannot be found.

CondaVerificationError: The package for openssl located at C:\Users\Nick\Anaconda3\pkgs\openssl-1.1.1d-he774522_2
appears to be corrupted. The path 'Library/include/openssl/obj_mac.h'
specified in the package manifest cannot be found.

SafetyError: The package for openssl located at C:\Users\Nick\Anaconda3\pkgs\openssl-1.1.1d-he774522_2
appears to be corrupted. The path 'Library/include/openssl/ssl.h'
has an incorrect size.
  reported size: 111253 bytes
  actual size: 35840 bytes

CondaVerificationError: The package for openssl located at C:\Users\Nick\Anaconda3\pkgs\openssl-1.1.1d-he774522_2
appears to be corrupted. The path 'Library/openssl.cnf.dist'
specified in the package manifest cannot be found.

【问题讨论】:

  • 在这种情况下值得重新安装 OpenSSL
  • 要不要进去手动删除C:\Users\Nick\Anaconda3\pkgs\openssl-1.1.1d-he774522_2
  • 哦,我明白你的意思了。 Anaconda 处理了 OpenSSL 安装,是吗?在这种情况下,我不太确定最好的方法:/
  • 我相信你有这个权利。这是一个 conda 包
  • 看到的一样。试试:datascience.stackexchange.com/a/66084/88005

标签: python anaconda conda


【解决方案1】:

这个问题最近在这里注册I am getting an InvalidArchiveError in anaconda prompt when I am trying to install spacy. How to solve it?

不要重复答案,简短的回答是,删除pkgs中的所有openssl *,例如conda install -c conda-forge libarchive,将重新安装openssl再次修复损坏问题。

【讨论】:

    【解决方案2】:

    我去了文件资源管理器并手动删除了包。这解决了这个问题。当我尝试创建一个新的 conda 环境时,它会再次自动安装 openssl。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多