conda update CondaHTTPError: HTTP None

后端 未结 17 771
无人共我
无人共我 2020-12-07 16:44

Midway through running Conda Update --all, the update stalled. Multiple packages had been updated. Now, when I run conda update --all or cond

相关标签:
17条回答
  • 2020-12-07 17:11

    The DLLs delivered by Anaconda3 are located here: D:\Anaconda3\Library\bin

    My workaround: I have copied the following files

    libcrypto-1_1-x64.* libssl-1_1-x64.* from D:\Anaconda3\Library\bin to D:\Anaconda3\DLLs.

    And it works as a charm!

    0 讨论(0)
  • 2020-12-07 17:12

    Use the code below in your command line :

    conda config --set ssl_verify no
    
    0 讨论(0)
  • 2020-12-07 17:12

    My original answer got flagged as duplicate because I answered a similar question with the same answer, I wasn't aware that this is not allowed. I have marked my other response as a duplicate. Hopefully, this stays up!

    I almost spent two days running in circles trying all the solutions I could find on the Internet, but here is what worked for me.

    So, CondaHTTPError aka SSL module is not available error is caused by the missing/misplacement of libcrypto file in anaconda3/DLLs folder:

    Tl;dr:

    From anaconda3\Library\bin copy below files and paste them in anaconda3/DLLs:

    -   libcrypto-1_1-x64.dll
    -   libssl-1_1-x64.dll 
    

    Detailed answer:

    1. Uninstall any Python versions you have (e.g. Python 3.7 or Python 3.8)

      go to Control Panel--> Program and Features--> Select Python-->

    uninstall

    1. Uninstall any Anaconda versions you might have (e.g. Anaconda or miniConda) For Anaconda:

      go to Control Panel--> Program and Features--> Select Anaconda-->uninstall

      For miniConda

      go to Control Panel--> Program and Features--> Select miniconda--> uninstall

    2. Delete any leftover Environment variables

      go to Control Panel--> System--> Advanced System settings (on left side)--> in System Properties click on Environment Variables button--> in User Variable select Path and click the Edit button--> delete any path related to Anaconda, miniConda or Python.

      E.g.
      C:\Users\Bob \AppData\Local\Programs\Anaconda\...
      C:\Users\Bob \AppData\Local\Programs\miniconda\...
      

      b. If you don’t see any paths related to Anaconda, miniConda or Python; you are good to go.

    3. Reboot your machine

    4. Download the latest version of Anaconda

    5. Run the Installer; keep all the default settings

    6. Go to your anaconda3/library/bin folder:

      E.g.C:\Users\Bob\AppData\Local\Continuum\anaconda3\Library\bin

    7. Copy these files:

      libcrypto-1_1-x64.dll

      libssl-1_1-x64.dll

    8. paste these in anaconda3/DLLs folder:

    9. Reopen the Anaconda Prompt and test with any command that requires an Internet connection. E.g. conda update conda Or with conda update --all

    0 讨论(0)
  • 2020-12-07 17:17

    Try to type "conda update conda" from the (base) environment

    0 讨论(0)
  • 2020-12-07 17:19

    Install the latest OpenSSl from this site: https://slproweb.com/products/Win32OpenSSL.html the current latest version is 1.1.1. Now I can install packages via pip and conda successfully.

    0 讨论(0)
  • 2020-12-07 17:19

    I had the same error, and I tried most of the methods, but none of them worked. I checked the version of anaconda3 it was 4.2.0 which I realized was in beta which might be the reason.

    I solved it by uninstalling everything and installing the latest version (5.1.0). It worked after that.

    0 讨论(0)
提交回复
热议问题