conda update CondaHTTPError: HTTP None

后端 未结 17 810
无人共我
无人共我 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: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

提交回复
热议问题