Tag Archives: python import _ssl DLL load fail error

[Solved] Python import _ SSL DLL load fail error the module problem could not be found

Solution:

Add the following three items to the windows environment variable:

C:\Users\username\Anaconda3
C:\Users\username\Anaconda3\Scripts
C:\Users\username\Anaconda3\Library\bin

Note: if anaconda is not installed in the default directory, you need to replace the C:\Users\username path with the path where you installed anaconda

PS: for Windows environment variable configuration, please refer to: open file explorer, right-click this computer – properties – advanced system settings – environment variables – system variables – path on the left, and add the above three items. If any item is not added, a question will appear

If it still hasn’t been solved

Set anaconda3\library\bin

-   libcrypto-1_1-x64.dll
-   libssl-1_1-x64.dll 
Copy to anaconda3/DLLs