0

完整的日志可以在下面看到。我正在使用flatpak-pip-generatorrequirements.txt。如果不使用需求文件,我会得到同样的错误。(我在编译项目时遇到错误)

  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-myezehl4/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-numpy -- 'setuptools<49.2.0' wheel 'Cython>=0.29.21'
       cwd: None
  Complete output (3 lines):
  Looking in links: file:///run/build/python3-numpy
  ERROR: Could not find a version that satisfies the requirement setuptools<49.2.0 (from versions: none)
  ERROR: No matching distribution found for setuptools<49.2.0
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-myezehl4/overlay --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links file:///run/build/python3-numpy -- 'setuptools<49.2.0' wheel 'Cython>=0.29.21' Check the logs for full command output.
4

1 回答 1

0

我通过锁定特定版本的 python 依赖项解决了我的问题(奇怪的是,如果我使用 flatpak-pip-generator,它只对我有用)。我也使用了 cppy,因为显然 matplotlib 依赖于它,尽管它似乎没有在依赖项轮中明确声明。我的requirements.txt文件现在是:

numpy==1.17.3
# matplotlib implicitly requires cppy
cppy==1.1.0
matplotlib==3.1.1
sympy==1.6.2
于 2020-10-06T14:18:00.500 回答