我尝试使用pytest运行测试,但出现以下错误。感谢您的帮助。你知道吗
命令:pytest --nbval --cov=xxxx --cov-report html --cov-report term
Python 3.7.4版 使用的熊猫版本:0.25.0 Pytest版本:5.2.0
=========================================================================================================== test session starts ===========================================================================================================
platform linux -- Python 3.7.4, pytest-5.2.0, py-1.8.1, pluggy-0.13.1
rootdir: /
plugins: cov-2.8.1, nbval-0.9.4
collecting ... Fontconfig warning: ignoring C.UTF-8: not a valid language tag
collected 0 items / 1 errors
Coverage.py warning: No data was collected. (no-data-collected)
================================================================================================================= ERRORS ==================================================================================================================
______________________________________________________________________________________________________ ERROR collecting test session ______________________________________________________________________________________________________
root/.local/lib/python3.7/site-packages/_pytest/config/__init__.py:456: in _importconftest
return self._conftestpath2mod[key]
E KeyError: PosixPath('/usr/local/lib64/python3.7/site-packages/pandas/conftest.py')
During handling of the above exception, another exception occurred:
root/.local/lib/python3.7/site-packages/_pytest/config/__init__.py:462: in _importconftest
mod = conftestpath.pyimport()
root/.local/lib/python3.7/site-packages/py/_path/local.py:701: in pyimport
__import__(modname)
root/.local/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:142: in exec_module
exec(co, module.__dict__)
usr/local/lib64/python3.7/site-packages/pandas/conftest.py:7: in <module>
import hypothesis
E ModuleNotFoundError: No module named 'hypothesis'
目前没有回答
相关问题 更多 >
编程相关推荐