mindspore下载最新分支(大于1.8)源码后,用bash build.sh -I x86_64命令编译mindspore_lite包,编译完后发现在output目录没有生成wheel包,
确认已经安装python3.7.13和numpy1.21.5和wheel0.37.1,满足编译mindspore_lite包要求
发现编译结束前提示
ls: cannot access 'python/*.so': No such file or directory
再往前找,看到在编译开始没多久提示
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Development Development.Module Development.Embed) (found version "3.8.0")
CMake Warning at python/CMakeLists.txt:45 (message):
Python3 not found, so Python API will not be compiled.
网上找了下,参考这篇文章
https://blog.csdn.net/qq_39537898/article/details/123963599随手记录 CMake:Could NOT find Python3_Kin__Zhang的博客-CSDN博客_cmake 找不到pythonhttps://blog.csdn.net/qq_39537898/article/details/123963599
用下面命令,直接卸载并且卸载干净3.8,之后重试就行了。
sudo apt-get -y purge python3.8
sudo apt-get -y autoremove