PyCharm:Python Console在打开时抛出ImportError

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

我刚刚在我的Windows 10笔记本电脑上安装了PyCharm。当我打开Python控制台时,我收到了这条消息

C:\Users\<user>\AppData\Local\Continuum\anaconda3\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 191.5701.26\helpers\pydev\pydevconsole.py" --mode=client --port=<portNum>
Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm Community Edition 191.5701.26\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 191.5701.26\helpers\pydev\_pydev_comm\rpc.py", line 4, in <module>
    from _pydev_comm.server import TSingleThreadedServer
  File "C:\Program Files\JetBrains\PyCharm Community Edition 191.5701.26\helpers\pydev\_pydev_comm\server.py", line 4, in <module>
    from _shaded_thriftpy.server import TServer
  File "C:\Program Files\JetBrains\PyCharm Community Edition 191.5701.26\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 191.5701.26\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 191.5701.26\helpers\third_party\thriftpy\_shaded_thriftpy\transport\sslsocket.py", line 7, in <module>
    import ssl
  File "C:\Users\<user>\AppData\Local\Continuum\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.
Process finished with exit code 1

我最初安装了最后一个稳定的pycharm,但我在2019年的新版本中卸载了它并添加了葡萄酒。但这个问题两次都发生了。

python console pycharm
1个回答
0
投票

StackOverflow这就是解决方案。它已经发布了。令人讨厌的部分是帖子建议复制并粘贴到变量中。但是我无法复制和粘贴,所以我必须全部输入。

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