Docker:没有这样的选项:--use-wheel
Docker: no such option: --use-wheel
我正在尝试使用 Docker 通过 this 存储库为 AWS Lambda 创建依赖包,但是每当我尝试 运行 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
--use-wheel
是 deprecated since pip 7 (in favor of --only-binary
) and removed since pip 10 beta 1.
修复 git 存储库中的所有脚本:
git grep -l -- --use-wheel | while read f; do sed -i -e 's|use-wheel|only-binary=:all:|g' ${f}; done
我正在尝试使用 Docker 通过 this 存储库为 AWS Lambda 创建依赖包,但是每当我尝试 运行 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
--use-wheel
是 deprecated since pip 7 (in favor of --only-binary
) and removed since pip 10 beta 1.
修复 git 存储库中的所有脚本:
git grep -l -- --use-wheel | while read f; do sed -i -e 's|use-wheel|only-binary=:all:|g' ${f}; done