[PYTHON] How to resolve SSL module errors in Anaconda environment

Introduction

Hello everyone. I'm a non-programmer studying Python. I'm going to do Python properly with a new PC recently! If you try to send an email for the time being Sudden error. .. .. I couldn't find more Japanese information than I expected until the solution, so I'll keep a memorandum of details and countermeasures.

environment

Anaconda3.8 Python3.8 Windows10 64bit

What happened

import ssl

Actually, I wrote various codes, but when I narrowed it down, the following error occurred in the above import.

import _ssl # if we can't import it, let the error propagate

Solution

The cause was a DLL error, so the following 2 files in the Library folder under the Anaconda installation folder When I copied it to the DLL folder, the error was successfully resolved.

** Storing source **  Anaconda\Library\bin\ ** Storage **  Anaconda\DLLs\

** DLL file **  libssl-1_1-x64.dll  libcrypto-1_1-x64.dll

Impressions

When I finished, I felt like what I was doing, but it was a difficult situation for beginners at first. I got an SSL error when I tried another method with pip on the way, so I wonder if that had the same effect. If you find yourself in a similar situation, please check the existence of the target DLL.

Reference site

https://stackoverflow.com/questions/54175042/python-3-7-anaconda-environment-import-ssl-dll-load-fail-error

Recommended Posts

How to resolve SSL module errors in Anaconda environment
How to add python module to anaconda environment
How to update Spyder in Anaconda
How to access environment variables in Python
How to resolve ModuleNotFoundError: No module named XXX in Jupyter Notebook
How to enable SSL (TLS) in Apache
How to use Anaconda interpreter in PyCharm
[Python] How to deal with module errors
[Django] How to resolve errors when installing mysqlclient
How to deal with run-time errors in subprocess.call
[TF] How to build Tensorflow in Proxy environment
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
How to run the Ansible module added in Ansible Tower
How to run AutoGluon in Google Colab GPU environment
Procedure to install TensorFlow in fish shell environment (Anaconda 4.0.0)
How to use jupyter lab in Windows 10 local environment
How to pass matplotlib backend settings in environment variables
How to deal with Executing transaction: failed in Anaconda
How to install poetry (error handling) in zsh environment
Use Anaconda in pyenv environment
How to develop in Python
How to import NoteBook as a module in Jupyter (IPython)
Double-click ipynb in windows + anaconda environment to open with jupyter-notebook
A note on how to load a virtual environment in PyCharm
How to develop in a virtual environment of Python [Memo]
For beginners, how to deal with common errors in keras
How to import NoteBook as a module in Jupyter (IPython)
How to build Anaconda virtual environment used in Azure Machine Learning and link with Jupyter
How to install python using anaconda
[Python] How to do PCA in Python
How to handle session in SQLAlchemy
How to handle multiple versions of CUDA in the same environment
How to use the optparse module
How to use classes in Theano
How to write soberly in pandas
How about Anaconda for building a machine learning environment in Python?
How to collect images in Python
Errors related to memcached in django
Install scrapy in python anaconda environment
How to use SQLite in Python
How to use Python's logging module
How to debug Dash (Flask) in Docker + VSCode + remote connection environment
Various Anaconda settings in Windows 10 environment
How to convert 0.5 to 1056964608 in one shot
install tensorflow in anaconda + python3.5 environment
How to deal with DistributionNotFound errors
How to kill processes in bulk
How to use Mysql in python
How to use ChemSpider in Python
How to use PubChem in Python
How to run TensorFlow 1.0 code in 2.0
How to use the ConfigParser module
How to handle Japanese in Python
How to log in to Docker + NGINX
How to install Anaconda with pyenv
How to call PyTorch in Julia
How to set proxy, redirect and SSL authentication for Python Requests module
How to resolve "No kernel of grammar Python found" error in Atom
Unable to import packages installed in virtual environment with Anaconda on Windows 10
How to install python package in local environment as a general user
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment