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

问题描述 投票:0回答:1

我在Win10上遇到了_ssl问题。我已经将python包和代码从Windows 7移到了Windows 10.在开始时我遇到了以下问题:

ImportError:缺少必需的依赖项['numpy']

但是这个通过重新安装.whl包的numpy和pandas得到了解决。

目前我在执行代码时面临以下问题:

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

关于堆栈溢出的其他问题,并尝试了几个步骤:

  1. 根据此Python 3.7 anaconda environment - import _ssl DLL load fail error中的建议更改了Path变量
  2. 安装了pyopenssl。
  3. 更新了系统环境变量。
  4. 重启了pycharm。

目前在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
  >>>

这意味着_ssl.pyd文件没有问题。

这在Windows 7上运行得很好,但在Windows 10上却没有。

python dll anaconda
1个回答
0
投票

提到这个Stack Over flow Question

基于Pycharm论坛post,这是一个已知的问题,将在Pycharm 2019.1的下一个版本中修复。解决此问题的唯一方法是使用python 3.6创建环境。如果您使用该环境作为解释器,PyCharm应该正常工作。

干杯!!

© www.soinside.com 2019 - 2024. All rights reserved.