在Python3.7中导入ssl模块时出错

2024-04-23 06:10:34 发布

您现在位置:Python中文网/ 问答频道 /正文

在python3.7.4中运行import ssl时,在Anaconda提示符下,出现以下错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\<user>\Anaconda3\lib\ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: DLL load failed: The specified procedure could not be found.

Google在PyCharm和Github页面中出现了一个错误,没有一个答案能够解决我的问题。我试过多次重新安装Anaconda3,每次都确保它被完全移除。我不知道这是否与我的机器有关(赢10)。我曾经尝试过为python手动安装SSL模块,但没有成功。你知道吗


Tags: inimportsslmost错误lineanacondacall