pycharm ipython控制台无法连接:ValueError: list.remove(x): x not in list

本文描述了在Win10系统下使用PyCharm和Python3.6.2时,更新至ipython7.5.0后,遇到的控制台无法连接错误。通过回滚至ipython6.5.0,成功解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

win10系统

python3.6.2

pycharm2017.1.1

安装完最新的ipython7.5.0后,控制台无法连接,报错:

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\pydevconsole.py", line 533, in <module>
    pydevconsole.start_server(pydev_localhost.get_localhost(), int(port), int(client_port))
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\pydevconsole.py", line 359, in start_server
    interpreter = InterpreterInterface(host, client_port, threading.currentThread())
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\_pydev_bundle\pydev_ipython_console.py", line 25, in __init__
    self.interpreter = get_pydev_frontend(host, client_port, show_banner=show_banner)
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 488, in get_pydev_frontend
    _PyDevFrontEndContainer._instance = _PyDevFrontEnd(show_banner=show_banner)
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 318, in __init__
    self.ipython = PyDevTerminalInteractiveShell.instance()
  File "C:\python3\lib\site-packages\traitlets\config\configurable.py", line 412, in instance
    inst = cls(*args, **kwargs)
  File "C:\python3\lib\site-packages\IPython\terminal\interactiveshell.py", line 459, in __init__
    super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
  File "C:\python3\lib\site-packages\IPython\core\interactiveshell.py", line 676, in __init__
    self.init_completer()
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 243, in init_completer
    self.Completer = self._new_completer_500()
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 205, in _new_completer_500
    parent=self
  File "C:\Program Files\JetBrains\PyCharm 2017.1.1\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 85, in __init__
    self.matchers.remove(self.python_matches)
ValueError: list.remove(x): x not in list
 

 

卸载最新的ipython,重新安装ipython6.5.0,控制台恢复正常。

参考:

https://stackoverflow.com/questions/49628994/pycharm-console-cannot-connect-after-update

https://www.cnblogs.com/wangbaojun/p/10758407.html

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值