pytest版本过高,导致运行文件把报错
错信息:
DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if version.LooseVersion(pytest.version) >= version.LooseVersion(“6.0”):
卸载已安装的pytest
pip3 uninstall pytest
安装4.0.2版本pytest
pip3 install pytest==6.0