我要寻求帮助,因为类似问题的答案[1],[2]不能帮助我解决这个问题。你知道吗
tox
在本地环境中无错误运行,但在travis ci中,与tox
、pytest
等版本相同,它引发以下异常:
pluggy.manager.PluginValidationError: Plugin 'removestalebytecode' could not be loaded: (pytest 4.4.0 (XXX/.tox/py35/lib/python3.5/site-packages), Requirement.parse('pytest<3.10'))!
从哪里来?pytest --version
shows版本3.7.4
,由pip install 'pytest~=3.7.0' --force-reinstall
travis ci setup显式安装。你知道吗
tox
完全独立于pip install 'pytest~=3.7.0' force-reinstall
安装它可以通过将
tox
环境粘贴到tox.ini
中的特定pytest
版本来解决它不能解决这个问题
因为在当前版本3.0.1中,pytest-remove-stale-bytecode插件不能与
py.test
3.10一起工作。你知道吗要解决这个问题
tox.ini
应该约束pytest-remove-stale-bytecode
的版本相关问题 更多 >
编程相关推荐