Docker: no such option: --use-wheel

会有一股神秘感。 提交于 2019-12-01 11:27:33

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 was deprecated and no longer exists for pip.

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 is deprecated since pip 7 (in favor of --only-binary) and removed since pip 10 beta 1.

To fix all scripts in a git repo:

git grep -l -- --use-wheel | while read f; do sed -i -e 's|use-wheel|only-binary=:all:|g' ${f}; done

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!