简体   繁体   English

DLL加载失败python 3.7

[英]DLL load failed python 3.7

I just bought new computer (dell xps 15). 我刚买了新电脑(dell xps 15)。

I installed anaconda with python 3.7 and pycharm. 我用python 3.7和pycharm安装了anaconda。

when I run pycharm in the python console I get this message: 当我在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.

I tried: 我试过了:

  1. download Visual Studio 2017 下载Visual Studio 2017
  2. added msvcp71.dll and msvcr71.dll to C:\\Windows\\System32 and C:\\Windows\\SysWOW64 将msvcp71.dll和msvcr71.dll添加到C:\\ Windows \\ System32和C:\\ Windows \\ SysWOW64
  3. tried to install Visual C++ Redistributable but it says that another version of this product already installed. 试图安装Visual C ++ Redistributable,但是它表示已经安装了该产品的另一个版本。

what can I try next?? 我接下来可以尝试什么?

您可以阅读另一个问题中提出的解决方案因为它看起来与您的问题非常相似(简而言之:您需要手动设置将PyCharmPATH变量添加到控制台)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM