Pip: 回溯运行 setup.py clean: ModuleNotFoundError: No module named 'setuptools'

创建于 2019-06-24  ·  3评论  ·  资料来源: pypa/pip

在问题 #6634 中报告说,在使用 (PEP 517) 构建轮子时,不需要setup.py clean失败时显示的回溯。

摘抄:

  Running `pyo3-pack build -i python --no-sdist --bindings=cffi`
  Error: Command '['pyo3-pack', 'build', '-i', 'python', '--no-sdist', '--bindings=cffi']' returned non-zero exit status 1.
  Building wheel for cffi-pure (PEP 517) ... error
  ERROR: Failed building wheel for cffi-pure
  Running setup.py clean for cffi-pure
  Running command /home/konsti/pyo3-pack/venv/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-req-build-sphjswqi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named 'setuptools'
  ERROR: Failed cleaning build dir for cffi-pure
Failed to build cffi-pure
auto-locked needs discussion bug

最有用的评论

所有3条评论

:眼睛:

你不必解释这里发生了什么,但如果你能解释就好了。 😛

我在创建它后关闭了它,因为当我查看代码时,似乎只有在启用详细模式时才会显示回溯,在这种情况下,它看起来并不是真正的问题(它是详细模式)。 但我不是 100% 确定,所以我现在将它保持开放以保持完整性。

此页面是否有帮助?
0 / 5 - 0 等级