windows python 3.10.X 安装nose运行失败解决办法

背景

win11 python 3.10.X pip install nose以后执行nosetests报错。

报错内容如下:

AttributeError: module ‘collections’ has no attribute ‘Callable’

 

省流

在python 3.10.X 版本下执行

pip uninstall nose

pip install  nose-py3

卸载以后重新安装就可以搞定。

 

尝试过:

1.python 3.10.3 升级到 3.10.9 ,无法解决

2.卸载后安装非二进制版本的nose ,无法解决

 

参考解决链接:

https://forum.learncodethehardway.com/t/ex46-nosetests-error/5683

posted @ 2023-10-22 23:30  包子铺1234  阅读(141)  评论(0编辑  收藏  举报