AttributeError: module 'collections' has no attribute 'Callable' AttributeError: module 'pyreadline.logger' has no attribute 'debug'
在python 3.10中一启动就会报这个错
解决方法
进入python安装目录 如我的在e盘下修改py3k_compat.py这个文件E:pythonlibsite-packagespyreadlinepy3k_compat.py
在第8行把 return isinstance(x, collections.Callable)改为 return isinstance(x, collections.abc.Callable)即可正常使用
参考https://github.com/hylang/hy/issues/2114



