Python 在将Conda更新为4.6.1以集成PowerShell后,Conda无法安装Conda forge软件包

Python 在将Conda更新为4.6.1以集成PowerShell后,Conda无法安装Conda forge软件包,python,powershell,visual-studio-code,conda,miniconda,Python,Powershell,Visual Studio Code,Conda,Miniconda,Conda的最新版本(4.6.1)声称增加了初始化支持,特别是对PowerShell的引用 我详细介绍了更新和初始化过程(因为我遇到了Microsoft/PowerShell问题,需要在编码会话期间设置ExecutionPolicy remoteSigned) 我可以设置它并将其与Visual Studio代码集成,但是我现在遇到了一个问题,即我无法将Conda forge中的包安装到任何Conda环境中 下面是我得到的错误输出: (p3environ_test) C:\Users\User\M

Conda的最新版本(4.6.1)声称增加了初始化支持,特别是对PowerShell的引用

我详细介绍了更新和初始化过程(因为我遇到了Microsoft/PowerShell问题,需要在编码会话期间设置ExecutionPolicy remoteSigned)

我可以设置它并将其与Visual Studio代码集成,但是我现在遇到了一个问题,即我无法将Conda forge中的包安装到任何Conda环境中

下面是我得到的错误输出:

(p3environ_test) C:\Users\User\Miniconda3\envs\p3environ_test>conda install -c conda-forge numpy
Collecting package metadata: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/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/main/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
我猜最新版本的Conda(V.4.6.1)有一个bug,或者是Conda forge频道的问题(也许他们没有考虑到这里的更新?)

我重新加载了先前版本的Conda(4.5),在创建环境或安装Conda forge软件包方面没有任何问题

在上一次升级中,有人注意到类似的事件,我想知道这是否是频道的问题。在链接中,特别注意添加频道。正如你可能猜到的,我是一个康达新手(或者至少缺乏熟练程度),因此不知道如何手动调整频道,或者我是否应该(这会在康达更新后给我带来问题吗?)康达福吉过去只为我工作,没有任何频道调整

任何帮助都将不胜感激


谢谢

TL;DR:我通过安装解决了类似的问题。具体来说,我下载了版本1.1.1a,64位(
Win64OpenSSL-1_1_1a.exe
),并使用默认安装参数安装了它,也就是说,我选择将OpenSSL DLL复制到“Windows系统目录”

更多详情:

  • 我有一个类似的头痛与新安装(!)的蟒蛇3。在我的例子中,在一个(conda的)虚拟环境中,我无法
    conda安装任何东西,并且不断收到与您类似的SSL错误
  • 有几个人推荐了
    conda config--set ssl\u verify False
    ,但这听起来像是一个可怕而危险的黑客攻击(+有人说这导致了安装某些软件包的问题)
  • 有人建议
    设置请求\u CA\u BUNDLE=path\to\anaconda3\Lib\site packages\certifi\cacert.pem
    ,但这对我不起作用。(我还尝试将其设置为环境变量,但也不起作用)
  • 总而言之,安装OpenSSL(见上文)为我解决了这个问题
奖励提示,可能与类似问题有关:

  • 有些事情从Anaconda提示符(与普通命令提示符相反)更容易实现
  • 如果您刚刚安装了一条新的Anaconda,请帮自己一个忙,重新启动Windows,即使安装后不需要您这样做

  • 我在github上发现了这个bug报告,我相信这可能是我遇到的错误的原因:我按照建议安装了OpenSSL,我以前的错误与问题中的错误相同,现在变成了以下错误:
    收集包元数据(current_repodata.json):CondaHttPeror失败:HTTP 000连接因url过期而失败:-尝试检索此url时发生HTTP错误。HTTP错误通常是间歇性的,只需简单的重试即可完成。
    [待续]
    如果您当前的网络https://www.anaconda.com 已阻止,请向您的网络工程团队提交支持请求。”https://repo.anaconda.com/pkgs/main/win-64“
    Collecting package metadata: done
    Solving environment: failed
    
    PackagesNotFoundError: The following packages are not available from current channels:
    
      - python-3.6
    
    Current channels:
    
      - https://repo.anaconda.com/pkgs/main/win-64
      - https://repo.anaconda.com/pkgs/main/noarch
      - https://repo.anaconda.com/pkgs/free/win-64
      - https://repo.anaconda.com/pkgs/free/noarch
      - https://repo.anaconda.com/pkgs/r/win-64
      - https://repo.anaconda.com/pkgs/r/noarch
      - https://repo.anaconda.com/pkgs/msys2/win-64
      - https://repo.anaconda.com/pkgs/msys2/noarch
    
    To search for alternate channels that may provide the conda package you're
    looking for, navigate to
    
        https://anaconda.org
    
    and use the search bar at the top of the page.