无法获取URLhttps://pypi.org/simple/absl-py/:从文件创建condas环境时



我正试图从我拥有的yml文件创建一个anacondas环境,我已经安装了anacondas,并添加了

C:ProgramDataAnaconda3 
C:ProgramDataAnaconda3bin 
C:ProgramDataAnaconda3Scripts 
C:ProgramDataAnaconda3Librarybin

所有到我的路径目录,仍然得到相同的问题:

Pip subprocess output:
Could not fetch URL https://pypi.org/simple/absl-py/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/absl-py/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
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
Pip subprocess error:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: 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/absl-py/
WARNING: 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/absl-py/
WARNING: 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/absl-py/
WARNING: 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/absl-py/
WARNING: 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/absl-py/
ERROR: Could not find a version that satisfies the requirement absl-py==1.0.0 (from versions: none)
ERROR: No matching distribution found for absl-py==1.0.0
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
failed
Traceback (most recent call last):
File "C:ProgramDataAnaconda3libsite-packagescondaexceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "C:ProgramDataAnaconda3libsite-packagesconda_envclimain.py", line 80, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:ProgramDataAnaconda3libsite-packagesconda_envclimain_create.py", line 141, in execute
result[installer_type] = installer.install(prefix, pkg_specs, args, env)
File "C:ProgramDataAnaconda3libsite-packagesconda_envinstallerspip.py", line 70, in install
return _pip_install_via_requirements(*args, **kwargs)
File "C:ProgramDataAnaconda3libsite-packagesconda_envinstallerspip.py", line 53, in _pip_install_via_requirements
stdout, stderr = pip_subprocess(pip_cmd, prefix, cwd=pip_workdir)
File "C:ProgramDataAnaconda3libsite-packagesconda_envpip_util.py", line 41, in pip_subprocess
raise CondaEnvException("Pip failed")
conda_env.exceptions.CondaEnvException: Pip failed

看起来它正试图指向";https://pypi.org/simple/absl-py/:"而不是";https://pypi.org/simple/absl-py/"但我不确定这是否完全好,只是其他地方有问题。

通过将libcrypto-1_1-x64.dlllibssl-1_1-x64.dll文件从Anaconda3Librarybin位置复制到Anaconda3envs<myenv>DLLs文件夹,设法找到解决方案。这似乎是一个糟糕的解决方案,但经过数小时的查找,这是我唯一能找到的解决问题的方法。

相关内容

  • 没有找到相关文章

最新更新