httprunner2.5.7+python3安装报错解决

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版本

posted @ 2023-10-26 18:29  悠然现南山  阅读(52)  评论(0编辑  收藏  举报