python 3.10.2 nosetests 无法正常运行

img

img

if isinstance(tests, collections.Callable) and not is_suite:
AttributeError: module 'collections' has no attribute 'Callable'

环境里安装了两个nosetest,不知道跟这个有没有关系。其他步骤都正常,就是跑不起来,一跑就出错。

可以尝试改下python\lib\site-packages\pyreadline\py3k_compat.py的源码,改成这样试一下:
return isinstance(x, collections.abc.Callable)
参考:
https://github.com/hylang/hy/issues/2114
如有帮助,请点采纳。

谢谢你的帮忙,但是问题已经解决了。

mac系统的怎么解决这个问题啊