首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从文件创建condas环境时无法获取URL https://pypi.org/simple/absl-py/:

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

Stack Overflow用户
提问于 2022-01-14 23:29:12
回答 1查看 171关注 0票数 0

我正在尝试从一个yml文件中创建一个anacondas环境,我已经安装了anacondas,并添加了

代码语言:javascript
复制
C:\ProgramData\Anaconda3 
C:\ProgramData\Anaconda3\bin 
C:\ProgramData\Anaconda3\Scripts 
C:\ProgramData\Anaconda3\Library\bin

所有这些都指向我的path目录,仍然存在相同的问题:

代码语言:javascript
复制
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:\ProgramData\Anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_env\cli\main.py", line 80, in do_call
    exit_code = getattr(module, func_name)(args, parser)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_env\cli\main_create.py", line 141, in execute
    result[installer_type] = installer.install(prefix, pkg_specs, args, env)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_env\installers\pip.py", line 70, in install
    return _pip_install_via_requirements(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_env\installers\pip.py", line 53, in _pip_install_via_requirements
    stdout, stderr = pip_subprocess(pip_cmd, prefix, cwd=pip_workdir)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_env\pip_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/”,但我不确定这是否非常好,只是在其他地方有一个问题。

EN

回答 1

Stack Overflow用户

发布于 2022-04-11 02:17:46

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70717627

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档