Conda update failed: SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

前端 未结 8 1620
借酒劲吻你
借酒劲吻你 2020-11-30 20:03

I found out that there was a problem when I tried doing

conda update 

Terminal output

conda update b

相关标签:
8条回答
  • 2020-11-30 20:48

    Conda needs to know where to find you SSL certificate store.

    conda config --set ssl_verify <pathToYourFile>.crt
    

    No need to disable SSL verification.

    This command add a line to your $HOME/.condarc file or %USERPROFILE%\.condarc file on Windows that looks like:

    ssl_verify: <pathToYourFile>.crt
    

    If you leave your organization's network, you can just comment out that line in .condarc with a # and uncomment when you return.

    If it still doesn't work, make sure that you are using the latest version of curl, checking both the conda-forge and anaconda channels.

    0 讨论(0)
  • 2020-11-30 20:49

    After 2 hrs of net surfing Finally For me the problem was fixed by creating a folder pip, with a file: pip.ini in C:\Users<username>\AppData\Roaming\ e.g:

    C:\Users\<username>\AppData\Roaming\pip\pip.ini
    

    Inside it I wrote:

    [global]
    trusted-host = pypi.python.org
    pypi.org
    files.pythonhosted.org
    

    I restarted python, and then pip permanently trusted these sites, and used them to download packages from.

    If you can't find the AppData Folder on windows, write %appdata% in file explorer and it should appear.

    Source : pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"

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