Paddle 编译错误:requirements.txt建议加一个wheel

d8tt03nd  于 2021-11-30  发布在  Java
关注(0)|答案(6)|浏览(372)

环境

我用的是国产化的linux操作系统,比如Kylin和华为的euler,不过这个问题感觉是个通用问题。

问题描述

python/requirements.txt里面,缺少wheel

如何复现

找个干净的环境(注意pythonpip也要干净),先pip3 install -r python/requirements.txt,然后尝试编译,在cmake阶段就会挂掉,报下面的信息。

-- Could NOT find PY_wheel (missing: PY_WHEEL)
CMake Error at cmake/python_module.cmake:27 (message):
  python module wheel is not found
Call Stack (most recent call first):
  cmake/external/python.cmake:70 (find_python_module)
  cmake/third_party.cmake:231 (include)
  CMakeLists.txt:287 (include)

供参考的解决方案

python/requirements.txt里面加一行wheel

jq6vz3qz

jq6vz3qz1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

xdnvmnnf

xdnvmnnf2#

请问处理器和操作系统是什么?

uz75evzq

uz75evzq4#

和处理器以及操作系统关系不大。
重点是这个:
在这里 https://github.com/PaddlePaddle/Paddle/blob/develop/python/requirements.txt 没有写需要wheel,但是这里
https://github.com/PaddlePaddle/Paddle/blob/develop/cmake/external/python.cmake#L70 却检查了wheel。

ogq8wdun

ogq8wdun5#

感谢反馈。复现了这个问题,会在python/requirements.txt里添加wheel

nr9pn0ug

nr9pn0ug6#

貌似还是与操作系统或python什么组件有关系。我ubuntu20上不需要单独安装wheel,但在ubuntu18上需要单独安装下wheel包,另外还有setuptools。

相关问题