乍一看,似乎正在安装测试依赖项(Processing coverage-4.4.2-py3.5.egg),然后突然没有安装(The 'coverage' module is not installed)。怎么了

(DictORM) 14:15 john@john:~/git/DictORM(master)$ python setup.py test --run-coverage
running green
Searching for coveralls
Best match: coveralls 1.2.0
Processing coveralls-1.2.0-py3.5.egg

Using /home/john/repos/git/DictORM/.eggs/coveralls-1.2.0-py3.5.egg
Searching for coverage
Best match: coverage 4.4.2
Processing coverage-4.4.2-py3.5.egg

Using /home/john/repos/git/DictORM/.eggs/coverage-4.4.2-py3.5.egg
Searching for docopt>=0.6.1
Best match: docopt 0.6.2
Processing docopt-0.6.2-py3.5.egg

Using /home/john/repos/git/DictORM/.eggs/docopt-0.6.2-py3.5.egg
Fatal: The 'coverage' module is not installed.  Have you run 'pip install coverage' ???

最佳答案

是的在此环境中的导入错误是由绿色引起的,它实际上没有将coverage指定为额外的依赖项。我们决定在2.12.0中将其作为必需的依赖项,以解决此问题。 The bug fix was discussed here

关于python - python setup.py test是否安装依赖项?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47567902/

10-14 17:38