gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 07:57:46 27 4
gpt4 key购买 nike

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

ImportError: Missing required dependencies ['numpy']

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

目前我在执行代码时遇到以下问题:

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 中的建议更改了路径变量

  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 上却不行。

最佳答案

不!当然,您可以继续使用 PyCharm 的 python 3.7。该问题还有另一个答案Python 3.7 anaconda environment - import _ssl DLL load fail error这允许您通过复制/粘贴有关 _ssl 过程的两个 dll 文件来摆脱此问题。

关于python - 导入 _ssl 错误,DLL 加载失败,Python 37 Anaconda Windows 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55878362/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com