Python apache beam 2.19.0不再在云数据流上运行,因为找不到满足要求的版本setuptools>=40.8

Python apache beam 2.19.0不再在云数据流上运行,因为找不到满足要求的版本setuptools>=40.8,python,google-cloud-dataflow,apache-beam,Python,Google Cloud Dataflow,Apache Beam,因为几天之后,我们的python数据流作业会在工作程序启动时导致错误: "ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)" ERROR: Command errored out with exit status 1: /usr/local/bin/python3 /usr/local/lib/python3.5/site-pa

因为几天之后,我们的python数据流作业会在工作程序启动时导致错误:

"ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 
(from versions: none)"

ERROR: Command errored out with exit status 1: /usr/local/bin/python3 
/usr/local/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix 
/tmp/pip-build-env-qz0ogm1p/overlay --no-warn-script-location --no-binary :none: --only-binary
 :none: --no-index --find-links /var/opt/google/dataflow -- 'setuptools>=40.8.0' wheel Check the 
logs for full command output.
这似乎不是requirements.txt的问题,它是:

ua-parser
numpy
pandas
Deprecated
有没有人遇到过这个问题,或者找到了解决办法?我确实尝试设置了一个特定的setuptools版本(46.1.3),这导致了另一个错误:

ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)

"ERROR: Command errored out with exit status 1: /usr/local/bin/python3 
/usr/local/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix 
/tmp/pip-build-env-2awl4fw3/overlay --no-warn-script-location --no-binary :none: --only-binary 
:none: --no-index --find-links /var/opt/google/dataflow -- 'setuptools>=40.8.0' wheel Check the
 logs for full command output." 

谢谢

已弃用的软件包从弃用的-1.2.7更改为弃用的-1.2.8,这导致了错误。
Dataflow workers使用setuptools 45.1.0 for python 3.5.9运行,因此通过更新的弃用软件包安装另一个版本会导致错误。

我遇到的问题与您的问题相同。为了修复它,我在requirements.txt中添加了setuptools,并确保它是在apache beam之前订购的