gpt4 book ai didi

python - 在 Windows 10 上通过 Anaconda 4.7.12 安装 openssl-1.1.1g 时出现 InvalidArchiveError

转载 作者:行者123 更新时间:2023-12-05 08:25:49 29 4
gpt4 key购买 nike

我正在尝试安装请求模块,但 openssl 一直导致 InvalidArchiveError。我在 Windows 10 操作系统上使用 conda 4.7.12,python 3.8.2。我在安装其他需要 openssl-1.1.1g 的软件包时遇到了同样的问题。我已按照错误消息中的建议删除并重新下载“openssl-1.1.1g-he774522_0.tar.bz2”,但我一直收到同样的错误。这个版本的 openssl 坏了吗?任何帮助将不胜感激。

lykim@Louis MINGW64 ~/Desktop/master/Learning
$ conda install -c anaconda requests
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done


==> WARNING: A newer version of conda exists. <==
current version: 4.7.12
latest version: 4.8.3

Please update conda by running

$ conda update -n base conda



## Package Plan ##

environment location: C:\ProgramData\Anaconda3\envs\pytorch

added / updated specs:
- requests


The following packages will be downloaded:

package | build
---------------------------|-----------------
openssl-1.1.1g | he774522_0 5.8 MB anaconda
------------------------------------------------------------
Total: 5.8 MB

The following NEW packages will be INSTALLED:

brotlipy conda-forge/win-64::brotlipy-0.7.0-py38h1e8a9f7_1000
cffi anaconda/win-64::cffi-1.14.0-py38h7a1dbc1_0
chardet anaconda/win-64::chardet-3.0.4-py38_1003
cryptography anaconda/win-64::cryptography-2.9.2-py38h7a1dbc1_0
idna anaconda/noarch::idna-2.9-py_1
pycparser anaconda/noarch::pycparser-2.20-py_0
pyopenssl anaconda/win-64::pyopenssl-19.1.0-py38_0
pysocks anaconda/win-64::pysocks-1.7.1-py38_0
requests anaconda/win-64::requests-2.23.0-py38_0
urllib3 conda-forge/noarch::urllib3-1.25.9-py_0
win_inet_pton anaconda/win-64::win_inet_pton-1.1.0-py38_0

The following packages will be SUPERSEDED by a higher-priority channel:

certifi conda-forge::certifi-2020.4.5.1-py38h~ --> anaconda::certifi-2020.4.5.1-py38_0
openssl conda-forge --> anaconda


Proceed ([y]/n)? y


Downloading and Extracting Packages
openssl-1.1.1g | 5.8 MB | ########## | 100%

InvalidArchiveError('Error with archive C:\\ProgramData\\Anaconda3\\pkgs\\openssl-1.1.1g-he774522_0.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nCould not unlink')

(pytorch)

最佳答案

我遇到过几次同样的问题。这次我的问题只是通过关闭正在运行并使用 openssl 的 jupyter notebook 来解​​决,所以如果你的 python 正在某处运行,请尝试将其关闭。 (此外已经删除了 openssl-1.1.1g-he774522_0.tar.bz2 和许多文件夹 openssl-1.1.1g-he774522_0 也包含那些 .tar 球,所以这也可能是必要的)

关于python - 在 Windows 10 上通过 Anaconda 4.7.12 安装 openssl-1.1.1g 时出现 InvalidArchiveError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62006225/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com