2015-11-13 1 views
14

j'ai découvert qu'il y avait un problème quand j'ai essayé de faireConda mise à jour a échoué: erreur SSL: [SSL: CERTIFICATE_VERIFY_FAILED] certificat verify échoué

conda update <package> 

sortie Terminal

conda update bokeh Fetching package metadata: SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) .SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) .SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) .SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) . Solving package specifications: . Package plan for installation in environment //anaconda:

The following packages will be downloaded:

package     |   build 
---------------------------|----------------- 
decorator-4.0.2   |   py27_0   11 KB 
ipython_genutils-0.1.0  |   py27_0   32 KB 
path.py-8.1.1    |   py27_0   45 KB 
pexpect-3.3    |   py27_0   60 KB 
pickleshare-0.5   |   py27_0   8 KB 
simplegeneric-0.8.1  |   py27_0   6 KB 
traitlets-4.0.0   |   py27_0   88 KB 
ipython-4.0.0    |   py27_0   916 KB 
jinja2-2.8     |   py27_0   263 KB 
tornado-4.2.1    |   py27_0   515 KB 
bokeh-0.9.3    |  np19py27_0  14.3 MB 
------------------------------------------------------------ 
             Total:  16.2 MB 

The following NEW packages will be INSTALLED:

ipython_genutils: 0.1.0-py27_0  
path.py:   8.1.1-py27_0  
pexpect:   3.3-py27_0  
pickleshare:  0.5-py27_0  
simplegeneric: 0.8.1-py27_0  
traitlets:  4.0.0-py27_0  

The following packages will be UPDATED:

bokeh:   0.9.0-np19py27_0 --> 0.9.3-np19py27_0 
decorator:  3.4.2-py27_0  --> 4.0.2-py27_0  
ipython:   3.2.0-py27_0  --> 4.0.0-py27_0  
jinja2:   2.7.3-py27_1  --> 2.8-py27_0  
tornado:   4.2-py27_0  --> 4.2.1-py27_0  

Proceed ([y]/n)? y

Fetching packages ... Could not connect to https://repo.continuum.io/pkgs/free/osx-64/decorator-4.0.2-py27_0.tar.bz2 Error: Connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590): https://repo.continuum.io/pkgs/free/osx-64/decorator-4.0.2-py27_0.tar.bz2

dendisuhubdy:finalproject dendisuhubdy$ brew link --force openssl Linking /usr/local/Cellar/openssl/1.0.2d_1... 1548 symlinks created dendisuhubdy:finalproject dendisuhubdy$ conda update bokeh Fetching package metadata: SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) .SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) .SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) .SSL verification error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) . Solving package specifications: . Package plan for installation in environment //anaconda:

The following packages will be downloaded:

package     |   build 
---------------------------|----------------- 
decorator-4.0.2   |   py27_0   11 KB 
ipython_genutils-0.1.0  |   py27_0   32 KB 
path.py-8.1.1    |   py27_0   45 KB 
pexpect-3.3    |   py27_0   60 KB 
pickleshare-0.5   |   py27_0   8 KB 
simplegeneric-0.8.1  |   py27_0   6 KB 
traitlets-4.0.0   |   py27_0   88 KB 
ipython-4.0.0    |   py27_0   916 KB 
jinja2-2.8     |   py27_0   263 KB 
tornado-4.2.1    |   py27_0   515 KB 
bokeh-0.9.3    |  np19py27_0  14.3 MB 
------------------------------------------------------------ 
             Total:  16.2 MB 

The following NEW packages will be INSTALLED:

ipython_genutils: 0.1.0-py27_0  
path.py:   8.1.1-py27_0  
pexpect:   3.3-py27_0  
pickleshare:  0.5-py27_0  
simplegeneric: 0.8.1-py27_0  
traitlets:  4.0.0-py27_0  

The following packages will be UPDATED:

bokeh:   0.9.0-np19py27_0 --> 0.9.3-np19py27_0 
decorator:  3.4.2-py27_0  --> 4.0.2-py27_0  
ipython:   3.2.0-py27_0  --> 4.0.0-py27_0  
jinja2:   2.7.3-py27_1  --> 2.8-py27_0  
tornado:   4.2-py27_0  --> 4.2.1-py27_0  

Proceed ([y]/n)? y

Fetching packages ... Could not connect to https://repo.continuum.io/pkgs/free/osx-64/decorator-4.0.2-py27_0.tar.bz2 Error: Connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590): https://repo.continuum.io/pkgs/free/osx-64/decorator-4.0.2-py27_0.tar.bz2

S'il vous plaît conseiller ce que je besoin de faire pour surmonter ce message!

Répondre

28

selon @jreback ici https://github.com/conda/conda/issues/1166

conda config --set ssl_verify false 

désactivera cette fonction, par exemple here

+2

Ne faites pas cela. C'était un vieux problème qui a été résolu. Est-ce que votre conda est à jour? – faph

+0

Maintenant c'est oui mais j'ai toujours les erreurs –

+0

La mienne est à jour aussi. Vous pouvez aussi ajouter ceci dans votre .condarc comme ceci: 'ssl_verify: false' –

7

Cela semblait faire l'affaire pour moi:

conda remove certifi 
conda install certifi 

Ensuite, vous pouvez faire tout ce que vous essayez de faire avant, par exemple

conda update --all 
28

Conda a besoin de savoir où trouver votre magasin de certificats SSL.

conda config --set ssl_verify <pathToYourFile>.crt 

Pas besoin de désactiver la vérification SSL.

Cette commande ajouter une ligne à votre fichier $HOME/.condarc ou d'un fichier %USERPROFILE%\.condarc sur Windows qui ressemble à:

ssl_verify: <pathToYourFile>.crt 

Si vous quittez le réseau de votre entreprise, vous pouvez faire un commentaire sur cette ligne .condarc avec un # et uncomment lorsque vous revenez.

Si cela ne fonctionne toujours pas, vérifiez que vous utilisez la dernière version de curl, en vérifiant les canaux conda-forge et anaconda.

+3

Ceci est la vraie réponse. J'ai rencontré cela parce que mon organisation intercepte le trafic avec un certificat interne. Une fois que je télécharge leur certificat et la conda pointée dessus, plus d'erreurs. –

+10

où trouver mon certificat? –

+2

De quel format de fichier de certificat a-t-il besoin? – endolith