python - Docker:没有这样的选项:--use-wheel

标签 python docker pip dockerfile python-wheel

我正在尝试使用 Docker 为 AWS Lambda 创建一个依赖包 this存储库,但每当我尝试运行 build.sh 文件时,我都会收到以下消息:

no such option: --use-wheel

然后,当我尝试使用 pip install wheel(在 Docker 之外)时,我被告知它已经在我的本地机器上了,确实如此。 如何在 Docker 容器中安装 Wheel?

如果有帮助,这似乎是 build.sh 中出现问题的代码行:

test -f /outputs/requirements.txt && pip install --use-wheel -r /outputs/requirements.txt

非常感谢任何帮助!

最佳答案

您的问题不是由于缺少依赖项(wheel 安装在您引用的 build.sh 脚本中:https://github.com/ryansb/sklearn-build-lambda/blob/master/build.sh#L18)

use-wheel 已弃用,pip 不再存在。

您可以通过从脚本中省略 --use-wheel 条目来实现相同的目的。查看链接存储库中的 Python 3.6 PR:https://github.com/ryansb/sklearn-build-lambda/pull/16/files#diff-0b83f9dedf40d7356e5ca147a077acb4

关于python - Docker:没有这样的选项:--use-wheel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49835842/

相关文章:

macos - 在后台运行 `tail -f` 而在前台运行 `docker exec -it` 时不应用回车符

Docker 使用 flink socketwordcount 示例 [apache-flink]

docker - Mule 3.7 JVM的内存不足

python - 无法在virtualenv中使用pip安装html包

python - protobuf python找不到包含

python - Scrapy process_links 和 process_request 的示例代码

python - 当我们需要使用 sudo python xxx.py 或只是 python xxx.py 或 xxx.py

python - Conda环境下,如何升级一个pip安装的包?

docker - 我没有在Divio项目中更改要求,那么为什么构建因依赖冲突而失败?

python - 根据python中的列表替换列中的几个值