[PYTHON] What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment

background

Put Miniconda (ver 4.9.0), VScode (ver 1.50.1) on the new Win10 PC When I tried to build a coding environment for python, I got the following error and pip did not pass, so I struggled to solve it, so a memorandum.

Status

After building a virtual environment using venv with VScode, when I try to pip install, it does not pass with an error. image.png

Solution

  1. OpenSSL installation Install OpenSSL on Win10. Win32 OpenSSL v1.1.1h Light in the figure image.png

  2. Pass the OpenSSL path image.png

  3. Replace the contents of OpenSSL The contents of the installation destination C: \ Program Files (x86) \ OpenSSL-Win32 \ bin, Replace with openssl in the miniconda installation folder
    Example) Copy the contents of C: \ Users \ [user name] \ miniconda3 \ pkgs \ openssl-1.1.1g-he774522_1 \ Library \ bin to the above OpenSSL installation destination

  4. Check if pip passes

In the middle of writing, simply passing through \ miniconda3 \ pkgs \ openssl-1.1.1g-he774522_1 \ Library \ bin through the path will solve the problem ...? I thought.

that's all.

Recommended Posts

What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment
[OSX] [pyenv] What to do when an SSL error occurs in pip
What to do when an error occurs with import _ssl
What to do if an error occurs when importing numpy with VScode
What to do if a UnicodeDecodeError occurs in pip
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
[python] What to do when an error occurs in send_keys of headless chrome
UnicodeDecodeError occurs in pip (Windows environment)
What to do when a Remove Error occurs when updating conda
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
[Beanstalk] What to do when an error occurs with import uuid
What to do when UnicodeDecodeError occurs during read_csv in pandas (pd.read_table ())
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if pip --user returns an error in a virtual environment created with pyenv
[Python] What to do when an error related to SSL authentication is returned
What to do if you can't install with pip in babun environment
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do when a warning message is displayed in pip list
What to do when PermissionError of tempfile.mkstemp occurs
Eliminates SSL error when PIP Install on Windows.
What I was addicted to when creating a web application in a windows environment
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do if a version error occurs in the selenium Chrome driver
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
What to do if pip install fails in Xcode 5.1
Force luigi to do parallel processing in windows environment
[Python] Type Error:'WebElement' object is not iterable What to do when an error occurs
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if a communication error occurs due to proxy when installing with package management of pip, npm, gem
[AWS] What to do when you want to pip with Lambda
What to do when "Invalid HTTP_HOST header" appears in Django
What to do when a Missing artifact occurs in a jar that is not defined in pom.xml
What to do if ʻObject arrays cannot be loaded when allow_pickle = False` occurs in numpy.load ()
What to do if you get an Undefined error when trying to use pip with pyenv
What to do when Ubuntu crashes
Error in ordinal number when importing Numpy in Anaconda environment of Windows
What to do when the value type is ambiguous in Python?
[Windows 10] [Development environment construction] How to resolve when unresolved import'django.xxx' python (unresolved-import) occurs in VS Code
I got an SSL Error when I installed Anaconda in a new environment, so I solved it (Windows10, Anaconda3-2019.10)
What to do if you get a must override `get_config` error when trying to model.save in Keras
I built an environment from centos installation to php source expansion on linux, but what to do when a browser error occurs
[Memorandum] What to do when a warning appears after executing pip list
What to do when the result downloaded via scrapy is in English
What to do when pyinstaller: error: argument --add-binary: invalid add_data_or_binary value: appears
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
What to do if you get an error when trying to load mnist
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
What to do if a symbolic link error occurs in import cv while trying to install OpenCV in Python
What to do if an error occurs in TensorFlow RNN related import or RNN (LSTM) Cell (v 0.11r ~)
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
What to do if an error occurs when loading a python project created with poetry into VS Code
What to do if you get a "No versions found" error in pipenv
[Python] I want to know the variables in the function when an error occurs!
What to do if CERTIFICATE_VERIFY_FAILED occurs when nltk.download () is done on macOS pyhon
What to do when a warning appears around Python integration in Neovim's CheckHealth