[PYTHON] I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)

    1. Install Anaconda with Anaconda3-2019.10-Windows-x86_64.exe
  1. When opening Anaconda Prompt and building a virtual environment, the following error occurs

(base) C:\Users\xxx> conda create -n py36 python=3.6 anaconda
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://anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'http://repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
    1. For OpenSSL, install Win64OpenSSL-1_1_1d.exe from here (* Error if Win64OpenSSL-1_1_0L.exe)

openssl01.PNG

Four. Since it was expanded to C: \ OpenSSL-Win64, copy all the contents of C: \ OpenSSL-Win64 \ bin to Anaconda3 \ Library \ bin.

openssl02.PNG

Five. Confirm that OpenSSL can be used from Anaconda Prompt

(base) C:\Users\xxx>openssl
OpenSSL> exit
  1. Check system environment variables openssl03.PNG

    1. I opened Anaconda Prompt and was able to create a virtual environment
(base) C:\Users\xxx>conda create -n py36 python=3.6 anaconda
Collecting package metadata (current_repodata.json): done
Solving environment: done

 Package Plan ##

  environment location: C:\Users\xxx\Anaconda3\envs\py36

  added / updated specs:
    - anaconda
    - python=3.6

The following NEW packages will be INSTALLED:
    1. The SSL error disappears, but there are times when it is useless in the university, so tethering
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.

ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x0000027D8404FB48>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)'))"))

Recommended Posts

I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)
I got an SSL related error with pip install, so I solved it
I got an error when pip install pandas on Mac, so I dealt with it
I got an error when pip install tweepy on macOS Sierra, so I dealt with it
When I installed python on macOS and used it, I got an error when I put an https connection
When I get an error with Pylint in Atom on Windows
Error in ordinal number when importing Numpy in Anaconda environment of Windows
Creating a virtual environment in an Anaconda environment
I get an error when I put a Python plugin in Visual Studio Code under the pyenv environment
When I get a chromedriver error in Selenium
What I was addicted to when creating a web application in a windows environment
In the Chainer tutorial, I get an error when importing a package. (mock)
I got an error when trying to run Hello World in Go language
What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment
When I tried to use Python on WSL (windows subsystem for linux), it got stuck in Jupyter (solved)
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
I get an error when I put opencv in pyautoGUI
I got InsecurePlatformWarning in python, so I installed requests [security]
I got an error when using Tensorboard with Pytorch
I wrote python3.4 in .envrc with direnv and allowed it, but I got a syntax error
When I tried to install PIL and matplotlib in a virtualenv environment, I was addicted to it.
When creating a pipenv environment, I got addicted to "Value Error: Not a valid python path"
I got a Value Error when using JUMAN ++ with PyKNP
I tried the super-resolution algorithm "PULSE" in a Windows environment
I got an error in vim and zsh in Python 3.7 series
Opens in a new window when launching Jupyter Notebook (Windows)
I got an AttributeError when mocking the open method in python
# Solution when pip install gives an error when using Anaconda on Windows 10
I got an error when I ran composer global require laravel / installer
I got an error when I ran meteor add accounts-password and got hooked
Various Anaconda settings in Windows 10 environment
I got stuck so I reviewed it
[Python] How to save the installed package and install it in a new environment at once Mac environment
Unable to import packages installed in virtual environment with Anaconda on Windows 10
I made a Discord bot in Python that translates when it reacts
I got an unfamiliar error in Django: TypeError: resolve () got an unexpected keyword argument'strict'
[OSX] [pyenv] What to do when an SSL error occurs in pip
In IPython, when I tried to see the value, it was a generator, so I came up with it when I was frustrated.
[Windows] The problem that an error occurs when opening a file other than CP932 (Shift-JIS) encoded in Python has been solved for the time being.
I created an Anaconda environment using Docker!
When I get an error with PyInstaller
I installed Kivy on a Mac environment
I built a TensorFlow environment on windows10
I started Node.js in a virtual environment
[Python] I want to know the variables in the function when an error occurs!
If you get a long error when tabbing an interactive shell with Anaconda
Linux Ubuntu16.04 I got a little scary error when I ran a command using sudo
I referred to it when I got stuck in the django geodjango tutorial (editing)