import _ssl error,DLL load failed ,Python 37 Anaco

2020-07-26 11:54发布

问题:

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.

回答1:

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.



回答2:

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!!