Firefly开源社区

打印 上一主题 下一主题

[技术讨论] 1126 buildroot 如何添加External python modules:pytorch

20

积分

0

威望

0

贡献

技术小白

积分
20

1126 buildroot 如何添加External python modules:pytorch

发表于 2023-2-2 17:49:13      浏览:5489 | 回复:1        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: AIO-RV1126-JD4_Linux_230202
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 添加过numpy软件包
  • Log日志: log.txt
问题描述及复现步骤:
GitHub - ishahak/buildroot_scanpypi3
根据该网站提示,用scanpypi安装pytorch软件包


编译时报错:
2023-02-02T01:38:05 package/Config.in:735:warning: multi-line strings not supported
2023-02-02T01:38:05 >>> python-pytorch 1.0.2 Installing to target
2023-02-02T01:38:05 (cd /home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/build/python-pytorch-1.0.2//; PATH="/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/host/bin:/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/host/sbin:/home/jiangzhaowei/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" CC="/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/host/bin/arm-linux-gnueabihf-gcc" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -DUSE_UPDATEENGINE=ON -DSUCCESSFUL_BOOT=ON" LDFLAGS="" LDSHARED="/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/host/bin/arm-linux-gnueabihf-gcc -shared" PYTHONPATH="/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/python3.8/" PYTHONNOUSERSITE=1 _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata__linux_arm-linux-gnueabihf" _python_sysroot=/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/host/arm-buildroot-linux-gnueabihf/sysroot _python_prefix=/usr _python_exec_prefix=/usr  /home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/host/bin/python setup.py install --no-compile --prefix=/usr --root=/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/target )
2023-02-02T01:38:05 Traceback (most recent call last):
2023-02-02T01:38:05 File "setup.py", line 11, in <module>
2023-02-02T01:38:05 raise Exception(message)
2023-02-02T01:38:05 Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
2023-02-02T01:38:05 package/pkg-generic.mk:310: recipe for target '/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/build/python-pytorch-1.0.2/.stamp_target_installed' failed
2023-02-02T01:38:05 make[1]: *** [/home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/build/python-pytorch-1.0.2/.stamp_target_installed] Error 1
2023-02-02T01:38:05 /home/jiangzhaowei/work/rv1126jd4_linux/buildroot/output/firefly_rv1126_rv1109/Makefile:16: recipe for target '_all' failed
2023-02-02T01:38:05 make: *** [_all] Error 2
Command exited with non-zero status 1
you take 0:11.69 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 742:
    /usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG



请问一下,buildroot怎样添加Python软件包?该方法是否正确?

log.txt

19.82 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

20

积分

0

威望

0

贡献

技术小白

积分
20
发表于 2023-2-3 10:00:12        只看该作者  沙发
我顶!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表