应该是在安装其它python第三方库时更新了prompt-toolkit版本,降级到下面的版本即可: sudo pip install 'prompt-toolkit==1.0.15' 转载于:https://www.cnblogs.com/darklights/p/10302706.html