tx2 numba opencv

原文:http://www.athenian-robotics.org/jetsontx2/

OpenCV

Instructions for building OpenCV 3.2 on the TX2 are here

https://github.com/jetsonhacks/buildOpenCVTX2

ROS and Gazebo¶

The gazebo7-common library is limited to version 7.0.0+dfsg-2. So install ROS and Gazebo with:

1
sudo apt-get install ros-kinetic-desktop-full  gazebo7-common=7.0.0+dfsg-2 

PyCuda

To install pycuda, follow the directions here (substituting 8.0 for the 7.0).

Anaconda Python

You cannot install Anaconda python on the Jetson TX2 because there is no support for aarch64 architecture.

Numba

Install numba outside of Anaconda with:

 

1
2
3
4
sudo apt-get install llvm-config-4.0
sudo su -
export LLVM_CONFIG=$(which llvm-config-4.0)
pip install numba

 

装不了numba可以试试这个:

wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
apt-get update
apt-get install llvm-3.9

Export the path to llvm-config-3.9 so the compiler llvmlite compiler can find it:

sudo -s

export LLVM_CONFIG=$(which llvm-config-3.9)

Install numba:
sudo pip install numba==0.31

还需要安装 llvmlite0.16

下载地址:

https://github.com/numba/llvmlite/releases/tag/v0.16.0

下载后,解压 python setup.py install


ImportError: No module named llvm.core
 

 

llvmlite 如果报错,试试:

# install llvm & llvmlite for librosa
RUN apt-get install -y wget
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -

RUN echo deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main >> /etc/apt/sources.list
RUN echo deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main >> /etc/apt/sources.list

RUN apt-get update && apt-get install -y llvm-6.0

RUN update-alternatives --install \
        /usr/bin/llvm-config       llvm-config      /usr/bin/llvm-config-6.0  200 \
--slave /usr/bin/llvm-ar           llvm-ar          /usr/bin/llvm-ar-6.0 \
--slave /usr/bin/llvm-as           llvm-as          /usr/bin/llvm-as-6.0 \
--slave /usr/bin/llvm-bcanalyzer   llvm-bcanalyzer  /usr/bin/llvm-bcanalyzer-6.0 \
--slave /usr/bin/llvm-cov          llvm-cov         /usr/bin/llvm-cov-6.0 \
--slave /usr/bin/llvm-diff         llvm-diff        /usr/bin/llvm-diff-6.0 \
--slave /usr/bin/llvm-dis          llvm-dis         /usr/bin/llvm-dis-6.0 \
--slave /usr/bin/llvm-dwarfdump    llvm-dwarfdump   /usr/bin/llvm-dwarfdump-6.0 \
--slave /usr/bin/llvm-extract      llvm-extract     /usr/bin/llvm-extract-6.0 \
--slave /usr/bin/llvm-link         llvm-link        /usr/bin/llvm-link-6.0 \
--slave /usr/bin/llvm-mc           llvm-mc          /usr/bin/llvm-mc-6.0 \
--slave /usr/bin/llvm-mcmarkup     llvm-mcmarkup    /usr/bin/llvm-mcmarkup-6.0 \
--slave /usr/bin/llvm-nm           llvm-nm          /usr/bin/llvm-nm-6.0 \
--slave /usr/bin/llvm-objdump      llvm-objdump     /usr/bin/llvm-objdump-6.0 \
--slave /usr/bin/llvm-ranlib       llvm-ranlib      /usr/bin/llvm-ranlib-6.0 \
--slave /usr/bin/llvm-readobj      llvm-readobj     /usr/bin/llvm-readobj-6.0 \
--slave /usr/bin/llvm-rtdyld       llvm-rtdyld      /usr/bin/llvm-rtdyld-6.0 \
--slave /usr/bin/llvm-size         llvm-size        /usr/bin/llvm-size-6.0 \
--slave /usr/bin/llvm-stress       llvm-stress      /usr/bin/llvm-stress-6.0 \
--slave /usr/bin/llvm-symbolizer   llvm-symbolizer  /usr/bin/llvm-symbolizer-6.0 \
--slave /usr/bin/llvm-tblgen       llvm-tblgen      /usr/bin/llvm-tblgen-6.0


RUN pip3 install llvmlite

 

你可能感兴趣的:(深度学习)