tox错误“导入错误:无法导入名称抑制”

时间:2019-05-31 03:36:54

标签: tox

当我运行Tox时,我得到了错误提示

Traceback (most recent call last):
  File "/usr/bin/tox", line 7, in <module>
    from tox import cmdline
  File "/usr/lib/python2.7/site-packages/tox/__init__.py", line 9, in <module>
    import pluggy
  File "/usr/lib/python2.7/site-packages/pluggy/__init__.py", line 16, in <module>
    from .manager import PluginManager, PluginValidationError
  File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 6, in <module>
    import importlib_metadata
  File "/usr/lib/python2.7/site-packages/importlib_metadata/__init__.py", line 14, in <module>
    from ._compat import (
  File "/usr/lib/python2.7/site-packages/importlib_metadata/_compat.py", line 21, in <module>
    from contextlib2 import suppress  # noqa
ImportError: cannot import name suppress

使用Redhat 7.5和python 2.7.5版本

0 个答案:

没有答案