python - 由于找不到满足 setuptools>=40.8 要求的版本,apache beam 2.19.0 不再在云数据流上运行
问题描述
几天后,我们的 python 数据流作业导致 worker 启动时出错:
"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."
谢谢
解决方案
我和你有同样的问题。为了解决这个问题,我在 requirements.txt 中添加了 setuptools 并确保它在 apache-beam 之前排序。
推荐阅读
- vue.js - Vue Apollo,点击按钮时触发查询
- javascript - Node.js:Express.js 设置 keep-alive
- java - 在使用 Struts2 时,源服务器没有找到目标资源的当前表示或不愿意透露存在的表示
- apache-spark - Spark 中的 shuffle 写入存储在哪里?
- c++ - 需要在行首绘制“>”形状
- istio - 为需要基本身份验证的容器配置 istio
- javascript - 在块范围内声明函数和变量
- mongodb - MongoDB 的 $lookup 中的 $geoWithing
- python - Python。合并未排序的数组(不完整)
- angular - node_modules/angular-in-memory-web-api/backend.service.d.ts(18,19) 中的错误:错误 TS1086:无法在环境上下文中声明访问器