pycharm的Python Console报错:AttributeError: can't set attribute,Couldn't connect to console process.

换电脑后安装 Anaconda3-5.1.0-Windows-x86_64(python版本是3.6.4),安装pycharm社区版,配置环境后,
点击 底部的 Python Console 报错,报错内容如下:

Traceback (most recent call last):
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev\pydevconsole.py”, line 483, in
pydevconsole.start_client(host, port)
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev\pydevconsole.py”, line 397, in start_client
interpreter = InterpreterInterface(threading.currentThread(), rpc_client=client)
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev_pydev_bundle\pydev_ipython_console.py”, line 19, in init
self.interpreter = get_pydev_frontend(rpc_client)
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev_pydev_bundle\pydev_ipython_console_011.py”, line 490, in get_pydev_frontend
_PyDevFrontEndContainer._instance = _PyDevFrontEnd()
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev_pydev_bundle\pydev_ipython_console_011.py”, line 339, in init
self.ipython = PyDevTerminalInteractiveShell.instance()
File “D:\Anaconda\lib\site-packages\traitlets\config\configurable.py”, line 412, in instance
inst = cls(*args, **kwargs)
File “D:\Anaconda\lib\site-packages\IPython\terminal\interactiveshell.py”, line 425, in init
super(TerminalInteractiveShell, self).init(*args, **kwargs)
File “D:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py”, line 488, in init
self.init_completer()
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev_pydev_bundle\pydev_ipython_console_011.py”, line 261, in init_completer
self.Completer = self._new_completer_600()
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev_pydev_bundle\pydev_ipython_console_011.py”, line 223, in _new_completer_600
parent=self
File “D:\Pycharm Files\PyCharm Community Edition 2019.2\helpers\pydev_pydev_bundle\pydev_ipython_console_011.py”, line 94, in init
IPCompleter.init(self, *args, **kwargs)
File “D:\Anaconda\lib\site-packages\IPython\core\completer.py”, line 1110, in init
self.dict_key_matches,
AttributeError: can’t set attribute
Couldn’t connect to console process.
解决方法1
在pycharm 里不使用 ipython

use ipython if available-----------使用IPython如果可用
在这里插入图片描述

解决方法2:
1、关闭pycharm
2、打开命令行,输入 pip uninstall ipython ,卸载ipython ,
3、再输入 pip install ipython 重新安装最新的ipython 版本,
4、打开pycharm,点击 Python Console,成功解决
在这里插入图片描述

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值