安装numba时一定要输入如下指令:
pip install numba==0.29.0 llvmlite==0.15.0
如果只输入
pip install numba==0.29.0
报错:
> Command "/usr/bin/python -u -c "import setuptools,
> tokenize;__file__='/tmp/pip-install-5ZcF2q/llvmlite/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" install
> --record /tmp/pip-record-TJA21u/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-5ZcF2q/llvmlite/
这个可以试试:
https://github.com/seibert/jetconda/releases/tag/v1.0.0-tx2
https://anaconda.org/jetson-tx2
Numba 0.37 is the latest one in the jetson-tx2 channel.