在pycharm切换python console时,抛出异常:
AttributeError: 'PyDevTerminalInteractiveShell' object has no attribute 'has_readline'
Couldn't connect to console process.
错误原因:已经安装的 ipython版本不兼容,卸载后安装4.2.0版本
操作:启动命令窗口,输入以下命令。
pip3 uninstall ipython
pip3 install ipython==4.2.0
若所使用的Project Interpreter(解释器)来自于..\Anaconda3\python.exe,则使用命令
conda uninstall ipython
conda install ipython==4.2.0