码头工人:没有这样的选择:--use-wheel [英] Docker: no such option: --use-wheel

查看:87
本文介绍了码头工人:没有这样的选择:--use-wheel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to use Docker to create a dependency package for AWS Lambda using this repository, but whenever I try to run the build.sh file, I end up with the message:

没有这样的选择:--use-wheel

no such option: --use-wheel

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

Then when I try to use pip install wheel (outside of Docker), I'm told that it's already on my local machine, which it is. How do I install Wheel in the Docker container?

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

If it's helpful, this appears to be the line of code in build.sh that is giving the issue:

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

非常感谢您的帮助!

推荐答案

您的问题并不是由于缺少依赖项(wheel安装在您引用的build.sh脚本中:

Your issue isn't due to missing dependencies ( wheel is installed in the build.sh script you referenced: 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

You can achieve the same by omitting the --use-wheel entries from the script. Take a look at the Python 3.6 PR on the linked repository: https://github.com/ryansb/sklearn-build-lambda/pull/16/files#diff-0b83f9dedf40d7356e5ca147a077acb4

这篇关于码头工人:没有这样的选择:--use-wheel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆