简体   繁体   English

导入_ssl错误,DLL加载失败,Python 37 Anaconda ZAEA23489CE3AA9B63ZECDA10

[英]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:参考其他关于堆栈溢出的问题并尝试了几个步骤:

  1. Changed Path variables as advised in this Python 3.7 anaconda environment - import _ssl DLL load fail error按照此Python 3.7 anaconda 环境中的建议更改路径变量 - 导入 _ssl DLL 加载失败错误

  2. Installed pyopenssl.安装了pyopenssl。

  3. Updated the system Environment variables.更新了系统环境变量。

  4. 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.

相关问题 Python 3.7 anaconda 环境 - 导入 _ssl DLL 加载失败错误 - Python 3.7 anaconda environment - import _ssl DLL load fail error 导入cv2:ImportError:DLL加载失败:Windows 7 Anaconda 4.3.0(64位)Python 3.6.0 - Import cv2: ImportError: DLL load failed: windows 7 Anaconda 4.3.0 (64-bit) Python 3.6.0 ImportError在Windows 10 Git Bash上使用Anaconda Python导入_ssl - ImportError import _ssl on Windows 10 Git Bash with Anaconda Python Python Opencv DLL 加载失败 - Windows 10 - Python Opencv DLL load failed - Windows 10 在python 3.6(anaconda3)中执行“导入pyodbc”时,Jupyter Notebook引发错误:ImportError:DLL加载失败 - when executing “import pyodbc” in python 3.6 (anaconda3) Jupyter Notebook throws error: ImportError: DLL load failed windows 导入 faiss 错误:DLL 加载失败 - windows import faiss error:DLL load failed Python 导入错误“DLL 加载失败” | 蟒蛇 - Python import error “DLL load failed” | Python Tensorflow(1.13.1)导入时出现异常:DLL加载失败(Windows 10) - Tensorflow (1.13.1) Exception when import: DLL load failed (Windows 10) Python Gurobi导入错误:DLL加载失败 - Python Gurobi import error: DLL load failed Jupyter notebook:导入错误:没有 Anaconda 的 DLL 加载失败(但适用于 .py) - Jupyter notebook : Import error: DLL load failed (but works on .py) without Anaconda
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM