httprunner2.5.7+python3安装报错解决

发布时间 2023-10-26 18:32:47作者: 悠然现南山

1.执行hrun -V报错:ImportError: cannot import name 'Iterable' from 'collections'

from collections import Iterable

修改成

from collections.abc import Iterable

 

2.执行hrun -V报错:ImportError: cannot import name 'soft_unicode' from 'markupsafe'

卸载markupsafe,重新安装markupsafe==2.0.1版本