简体   繁体   中英

Anaconda TensorFlow Installation Error “HTTP”How to fix?

I was trying to install Tensorflow by creating an environment but I got an error because I my Self-Signed Certificate. I fixed this once with pip but I don't know how to do that with Anaconda.

The error is:

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
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/current_repodata.json (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'tls_process_server_certificate\', \'certificate verify failed\')])")))'))

I tried to find a command to fix that but could not find one. I am supposed to be able to create the environment without any issue.

I have searched on Internet and found something related to Conda issue. Before going to 1) and 2) steps, just type

conda config --set ssl_verify no

Then do following:

  1. Create new environment by typing(optional)

    conda create -n tensorflow pip python=3.7 activate tensorflow

  2. Install Tensorflow 1.9

    pip install --ignore-installed --upgrade tensorflow==1.9

I didn't get any error with this. If you have errors, comment down below.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM