[英]import _ssl error,DLL load failed ,Python 37 Anaconda Windows 10
I am struggling with _ssl issue on Win10.我正在努力解决 Win10 上的 _ssl 问题。 I have moved python packages and code from Windows 7 to Windows 10. In the starting I was facing below issues:
我已将 python 包和代码从 Windows 7 移至 Windows 10。在开始时,我遇到了以下问题:
ImportError: Missing required dependencies ['numpy']
ImportError:缺少必需的依赖项 ['numpy']
But this one got resolved via reinstalling.whl packages of numpy and pandas.但是这个问题通过 numpy 和 pandas 的 reinstalling.whl 包得到了解决。
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:参考其他关于堆栈溢出的问题并尝试了几个步骤:
Changed Path variables as advised in this Python 3.7 anaconda environment - import _ssl DLL load fail error按照此Python 3.7 anaconda 环境中的建议更改路径变量 - 导入 _ssl DLL 加载失败错误
Installed pyopenssl.安装了pyopenssl。
Updated the system Environment variables.更新了系统环境变量。
Restarted the pycharm.重新启动 pycharm。
Currently on Anaconda prompt It's showing as:目前在 Anaconda 提示符显示为:
(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.这意味着 _ssl.pyd 文件没有问题。
This is working perfectly fine on Windows 7, but not on Windows 10.这在 Windows 7 上运行良好,但在 Windows 10 上运行良好。
NO!!不!! Of course you can keep using python 3.7 from PyCharm.
当然,您可以继续使用 PyCharm 的 python 3.7。 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.
对于该问题Python 3.7 anaconda environment - import _ssl DLL load fail error给出了另一个答案,它允许您通过复制/粘贴有关 _ssl 过程的两个 dll 文件来解决此问题。
Based on Pycharm forum post it's a known issue that will be fixed in the next release of Pycharm 2019.1.基于 Pycharm 论坛帖子,这是一个已知问题,将在 Pycharm 2019.1 的下一个版本中修复。 The only way to resolve this is to create an environment using python 3.6.
解决此问题的唯一方法是使用 python 3.6 创建环境。 If you use that environment as your interpreter PyCharm should work properly.
如果您使用该环境作为解释器,PyCharm 应该可以正常工作。
Cheers!!干杯!!
personnellement j'ai juste redémarrer mon ordinateur et c'est bon人事部 j'ai juste redémarrer mon ordinateur et c'est bon
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.