Jetson Nano & TX2 (八)numba

环境:

  • python3.6.8

依赖关系:

  • llvm > llvmlite > numba

一、llvm 与 llvmlite 对应关系

llvmlite of version 0.33.0, llvmlite requires LLVM 9.0.x.

llvmlite versions compatible LLVM versions
0.33.0 - ... 9.0.x
0.29.0 - 0.32.0 7.0.x, 7.1.x, 8.0.x
0.27.0 - 0.28.0 7.0.x
0.23.0 - 0.26.0 6.0.x
0.21.0 - 0.22.0 5.0.x
0.17.0 - 0.20.0 4.0.x
0.16.0 - 0.17.0 3.9.x
0.13.0 - 0.15.0 3.8.x
0.9.0 - 0.12.1 3.7.x
0.6.0 - 0.8.0 3.6.x
0.1.0 - 0.5.1 3.5.x

 

二、llvm 安装

sudo apt-get install llvm-8 llvm-8-dev
export LLVM_CONFIG=/usr/bin/llvm-config-8

ps:可以安装 llvm 其他对应版本(一些移除命令):

  • apt-get remove: 卸载软件
  • apt-get purge: 卸载软件和配置文件
  • apt-get autoremove: 移除没有使用的依赖
  • apt-get clean: 删除/var/cache/apt/archives/下的所有deb包
  • apt-get autoclean: 删除/var/cache/apt/archives/下的过期deb包
     

三、llvmlite 安装

官方:地址

pip3 install llvmlite==0.32.0

 

四、numba 安装

官方:地址

pip3 install numba==0.31

ps:这种方式 目前亲测(0.31)可行

五、另外一种途经:

利用 Archiconda (另一个):地址

pip3 install numba

ps:任何版本 都 可以,亲测 0.50.0 + 也没问题 ,文档地址

猜你喜欢

转载自blog.csdn.net/qq_19707521/article/details/107229401