Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import _ssl error,DLL load failed ,Python 37 Anaconda Windows 10

I am struggling with _ssl issue on Win10. I have moved python packages and code from Windows 7 to Windows 10. In the starting I was facing below issues :

ImportError: Missing required dependencies ['numpy']

But this one got resolved via reinstalling .whl packages of numpy and pandas.

Currently I am facing below issue, while executing the code:

import _ssl             # if we can't import it, let the error propagate
    ImportError: DLL load failed: The specified procedure could not be found. 

Referred to other Questions on Stack overflow and tried few steps:

  1. Changed Path variables as advised in this Python 3.7 anaconda environment - import _ssl DLL load fail error

  2. Installed pyopenssl .

  3. Updated the system Environment variables.

  4. Restarted the pycharm.

Currently on Anaconda prompt It's showing as :

   (base) C:\>
   (base) C:\>python
    Python 3.7.0 (default, Aug 14 2018, 19:12:50) [MSC v.1900 32 bit 
    (Intel)] :: Ana
     conda, Inc. on win32
     Type "help", "copyright", "credits" or "license" for more 
     information.
   >>> import ssl
  >>> import _ssl
  >>>

which means there is no issue with _ssl.pyd file.

This is working perfectly fine on Windows 7, but not on Windows 10.

like image 607
rose Avatar asked Oct 16 '22 15:10

rose


1 Answers

NO!! Of course you can keep using python 3.7 from PyCharm. There is another answer given for that question Python 3.7 anaconda environment - import _ssl DLL load fail error which allows you to get rid of this issue by copy/paste of two dll files regarding _ssl procedure.

like image 149
Elias Avatar answered Nov 02 '22 23:11

Elias