Ad

Import _ssl Error,DLL Load Failed ,Python 37 Anaconda Windows 10

- 1 answer

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.

Ad

Answer

Based on Pycharm forum post it's a known issue that will be fixed in the next release of Pycharm 2019.1. The only way to resolve this is to create an environment using python 3.6. If you use that environment as your interpreter PyCharm should work properly.

Cheers!!

Ad
source: stackoverflow.com
Ad