cython安装ubuntu_用cython交叉编译intel-ubuntu到arm的项目

交叉编译需要依赖于体系结构的库和头文件。在

当测试python3.5-dev包和其他包是否可以安装在dpkg add-architecture armhf和{}(在对来源.列表),结果基本上是。在python3.5-dev:armhf : Depends: python3.5:armhf (= 3.5.1-10) but it is not going to be installed

apt-get install python3.5:armhf是不起作用的,seeThe existing proposals allow for the co-installation of libraries and

headers for different architectures, but not (yet) binaries.

QEMU和chroot提供了一种不需要“完整”虚拟机的解决方案。可以通过debootstrap命令为chroot创建一个合适的目录。{cd5>创建后可以访问环境。在

在以下命令中替换和:

^{pr2}$

环境应通过schroot -c chroot:xenial-armhf

对于根用户会话(用户必须位于根组中列出的组中)schroot -c chroot:xenial-armhf -u root

在此之后,还可以交叉编译cython模块:

在你好.pyx公司名称:print("hello world")

编译(python3.5-config cflags和{}在chroot中用于选项,请注意-fPIC):cython hello.pyx

arm-linux-gnueabihf-gcc sysroot -I/usr/include/python3.5m -I/usr/include/python3.5m -Wno-unused-

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:这是一条非常珍贵的命令,找了好久才找到的:(有时候运行该命令一次便可以安装成功,有时候要运行好几次,这可能和网络有关。) pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox 📍三、 安装pycocotools 。 引用\[2\]: 最近做的项目需要安装cython_bbox包,但是当我天真的输入pip install cython_bbox准备满心欢喜的等待安装成功却发现...,它报错了,这是一个从未见过的、非常长的报错,它长这个样子: 。 引用\[3\]:pip install cython_bbox报错如下 Collecting cython_bbox Using cached cython_bbox-0.1.3.tar.gz (41 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> \[6 lines of output\] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-wcb8evni/cython-bbox_4ae61c9bb59a4b7fa79b746b9fb9560e/setup.py", line 10, in <module> from Cython.Build import cythonize ModuleNotFoundError: No module named 'Cython' \[end of output\] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. 现有的解决方法 。 问题:ubuntu安装cython-bbox 回答: 在Ubuntu安装cython-bbox时,可能会遇到一些问题。根据引用\[1\]中提供的命令,你可以尝试运行以下命令来安装cython-bbox:pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox。然而,根据引用\[2\]和引用\[3\]的描述,你可能会遇到一个名为"Cython"的模块缺失的错误。这意味着你需要先安装Cython模块。你可以使用以下命令来安装Cython模块:pip install Cython安装完成后,再次尝试安装cython-bbox包,应该就可以成功了。希望这能帮到你。 #### 引用[.reference_title] - *1* *2* [cython_bbox库就该这么安装](https://blog.csdn.net/qq_51831335/article/details/126457486)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [ubuntu中pip install cython_bbox报错](https://blog.csdn.net/weixin_41868104/article/details/123891737)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值