Ami*_*mit 39 python anaconda conda
我尝试在 Windows 10 系统中安装或更新新软件包,其中安装了 Anaconda3(2019 版)。但每次我都会遇到相同的 SSL 错误。如果我可以在家庭 WiFi 网络中访问该网络,我会怀疑这可能是公司防火墙问题。但到处我都会遇到同样的错误。运行 COnda 搜索时,出现此错误:
conda search
Loading channels: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/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.
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/free/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
Run Code Online (Sandbox Code Playgroud)
使用 Pip install 我收到此错误:
pip install keras
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting keras
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/keras/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/keras/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/keras/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/keras/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/keras/
Could not fetch URL https://pypi.org/simple/keras/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/keras/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not find a version that satisfies the requirement keras (from versions: )
No matching distribution found for keras
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Run Code Online (Sandbox Code Playgroud)
我从这个位置“ https://slproweb.com/products/Win32OpenSSL.html ”安装了 OpenSSL ,并在 PATH 变量中设置了 lib 文件夹。但没有任何作用。请建议。
fra*_*ntb 114
我能够按照此说明解决问题。基本上: * 将以下文件从CONDA_PATH\Library\bin复制到CONDA_PATH\DLLs
libcrypto-1_1-x64.*
libssl-1_1-x64.*
Run Code Online (Sandbox Code Playgroud)
Und*_*nes 29
在 Miniconda、Win11 Pro x64 上。想要创建一个新的环境,conda install pip
突然遇到了同样的问题。
首先更新
conda update --all
(base) 中的基础,然后再尝试conda install pip
或再次尝试。
没用
安装最新的 OpenSSL
没用
将最新的 OpenSSL DLL 复制到 \bin 和 \DLLs 目录
复制libcrypto-3-x64.dll
+libssl-3-x64.dll
从C:\Program Files\OpenSSL-Win64\bin
到C:\Users\username\anaconda3\Library\bin
并C:\Users\username\anaconda3\Library\DLLs
没用
将现有 dll 从 \bin 复制到 \DLLs
复制libcrypto-1_1-x64.dll
并libssl-1_1-x64.dll
从C:\Users\username\miniconda3\Library\bin
到C:\Users\username\miniconda3\DLLs
工作过
Pun*_*ari 10
conda update conda
Run Code Online (Sandbox Code Playgroud)
收集包元数据(current_repodata.json):失败
CondaSSLError:OpenSSL 在此计算机上似乎不可用。下载并安装软件包需要 OpenSSL。
异常:HTTPSConnectionPool(主机='repo.anaconda.com',端口=443):超过最大重试次数,网址:/pkgs/main/win-64/current_repodata.json(由SSLError(“无法连接到HTTPS URL”)引起因为 SSL 模块不可用。"))
针对以上问题的解决方案:
1. 尝试使用 Anaconda powershell 提示符,如下图所示:
2.通过基础环境
A。conda activate base
b.conda update --all
笔记:
A。Conda 始终创建默认环境作为基础。我们可以激活基础环境来升级conda。
归档时间: |
|
查看次数: |
63591 次 |
最近记录: |