简体   繁体   English

Python 3.7.1(Ipython 7.2)控制台无法在Pycharm社区2018.3中启动

[英]Python 3.7.1 (Ipython 7.2) console does not start in Pycharm Community 2018.3

Please, could you help? 拜托,你能帮忙吗? I am unable to get the python console started in PyCharm. 我无法在PyCharm中启动python控制台。 I am using a Win10 machine with miniconda. 我正在使用带有miniconda的Win10机器。 I have trawled the documentation but cannot figure this one out. 我已经拖曳了文档,但无法弄清楚。 Any help would be appreciated. 任何帮助,将不胜感激。 Please find below the error I click on the 'Python Console' tab: 请在错误下方找到我点击“ Python控制台”标签的错误:

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharmCE\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\PyCharmCE\helpers\pydev\_pydev_comm\rpc.py", line 4, in <module>
    from _pydev_comm.server import TSingleThreadedServer
  File "C:\Program Files\JetBrains\PyCharmCE\helpers\pydev\_pydev_comm\server.py", line 4, in <module>
    from _shaded_thriftpy.server import TServer
  File "C:\Program Files\JetBrains\PyCharmCE\helpers\third_party\thriftpy\_shaded_thriftpy\server.py", line 9, in <module>
    from _shaded_thriftpy.transport import (
  File "C:\Program Files\JetBrains\PyCharmCE\helpers\third_party\thriftpy\_shaded_thriftpy\transport\__init__.py", line 57, in <module>
    from .sslsocket import TSSLSocket, TSSLServerSocket  # noqa
  File "C:\Program Files\JetBrains\PyCharmCE\helpers\third_party\thriftpy\_shaded_thriftpy\transport\sslsocket.py", line 7, in <module>
    import ssl
  File "C:\miniconda3\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.

Ok figured this one out. 好的,想出了这个。 Anaconda prompt basically changes the PATH variable to include the path where miniconda is installed. Anaconda提示基本上会更改PATH变量,以包括miniconda的安装路径。 Starting Pycharm by itself does not do this. 本身启动Pycharm不会执行此操作。 Console works fine after starting anaconda prompt. 启动anaconda提示符后,控制台工作正常。 Hence this is a PATH issue. 因此,这是一个PATH问题。 I found the path variable from the native interpreter after starting Anaconda and copied and pasted the PATH into Console options in Pycharm... and it works like a charm! 在启动Anaconda并将其复制并粘贴到Pycharm中的Console选项中后,我从本机解释器中找到了path变量,它就像一个魅力!

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

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