DLL加载失败python 3.7

时间:2019-03-05 15:23:37

标签: python

我刚买了新计算机(dell xps 15)。

我用python 3.7和pycharm安装了anaconda。

当我在python控制台中运行pycharm时,我收到此消息:

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\pydev\pydevconsole.py", line 5, in <module>
    from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\pydev\_pydev_comm\rpc.py", line 4, in <module>
    from _pydev_comm.server import TSingleThreadedServer
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\pydev\_pydev_comm\server.py", line 4, in <module>
    from _shaded_thriftpy.server import TServer
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\third_party\thriftpy\_shaded_thriftpy\server.py", line 9, in <module>
    from _shaded_thriftpy.transport import (
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\third_party\thriftpy\_shaded_thriftpy\transport\__init__.py", line 57, in <module>
    from .sslsocket import TSSLSocket, TSSLServerSocket  # noqa
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\helpers\third_party\thriftpy\_shaded_thriftpy\transport\sslsocket.py", line 7, in <module>
    import ssl
  File "C:\Users\....\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 module could not be found.

我尝试过:

  1. 下载Visual Studio 2017
  2. 将msvcp71.dll和msvcr71.dll添加到C:\ Windows \ System32和C:\ Windows \ SysWOW64
  3. 试图安装Visual C ++ Redistributable,但是它表示已经安装了该产品的另一个版本。

接下来我可以尝试什么?

1 个答案:

答案 0 :(得分:0)

您可以阅读提出的解决方案in another question 因为它似乎与您的问题非常相似(简而言之:您需要设置 手动将PATH中的PyCharm变量添加到控制台)