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.
Anaconda3.8 Python3.8 Windows10 64bit
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
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
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.
https://stackoverflow.com/questions/54175042/python-3-7-anaconda-environment-import-ssl-dll-load-fail-error
Recommended Posts