Using flatpak-pip-generator resulting in "ERROR: could not find a version" when compiling

Using flatpak-pip-generator resulting in "ERROR: could not find a version" when compiling

完整的日志可以在下面看到。我正在使用 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.

我已经通过锁定我的 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