Xavier environment installation

Ros Python3.6 Dependencies Installation

sudo apt-get install python3-yaml
python3.6 -m pip install easydict

#for "ImportError: No Module Name 'rospkg' "
sudo apt-get install python3-catkin-pkg-modules
sudo apt-get install python3-rospkg-modules

Tensorflow on PY36 Installation Steps

Step1. Install python3.6

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6

Step2. Install tensorflow dependecies

sudo apt-get install python3-pip
sudo apt-get install zlib1g-dev zip libjpeg8-dev libhdf5-dev python3.6-dev python3-yaml
python3.6 -m pip install -U  --user numpy grpcio absl-py py-cpuinfo psutil portpicker grpcio six mock requests gast astor termcolor
sudo python3.6 -m pip install h5py --user

Step3. Install tensorflow

# don't use nvidia guide command
sudo python3.6 -m pip install --user https://developer.download.nvidia.com/compute/redist/jp/v411/tensorflow-gpu/tensorflow_gpu-1.13.0rc0+nv19.2-cp36-cp36m-linux_aarch64.whl 

Verify the installation

python3
#enter python3 mode
import tensorflow

ISSUE: ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory

Solution:

GO TO INSTALL CUDA10

ISSUE: ImportError: /usr/lib/aarch64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11' not found

Solution:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

ISSUE: ImportError: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found

Follow guide: https://zhuanlan.zhihu.com/p/33059558

Solution: update GLIBC to specific version(>=2.27)

Step0. Check GLIBC version

strings /lib/aarch64-linux-gnu/libm.so.6 | grep GLIBC_

Step1. Download & make install GLIBC

#install dependencies
sudo apt-get install gawk

#Download & make install GLIBC
cd 
mkdir glibc && cd glibc
wget http://mirror.rit.edu/gnu/libc/glibc-2.27.tar.gz
tar zxvf glibc-2.27.tar.gz
mkdir glibc-2.27-build glibc-2.27-install
cd glibc-2.27-build
../glibc-2.17/configure --prefix=`readlink -f ../glibc-2.17-install`
make -j 8
make -j 8 install
sudo ln -sf /home/nvidia/glibc/glibc-2.27-install/lib/libm.so.6 /lib/aarch64-linux-gnu/libm.so.6
gedit ~/.bashrc
#Go to the bottome and paste code below
sudo ln -sf /home/nvidia/glibc/glibc-2.27-install/lib/libm.so.6 /lib/aarch64-linux-gnu/libm.so.6

Tensorflow on PY27 Installation Steps

Step1. Download Tensorflow .whl for URL below

#File of tensorflow-gpu aarrch64 python2.7 version
https://drive.google.com/file/d/1LsEmSxWV9cvKp7iQzAleUBlRj5I7LLEQ/view

Step2. Install .whl File

 --ignore-installed enum34 tensorflow-1.12.1-cp27-cp27mu-linux_aarch64.whl

Step3. Done and Verify

#Enter python shell
python
>> import tensorflow
# No display means tensorflow installed
>> 

OpenCV Installation Steps(Depreciate)

Follow this: https://cyaninfinite.com/installing-opencv-in-ubuntu-for-python-3/

Numba Installation(Depreciate)

Step1. install llvm >=7.0

llvm download page: http://releases.llvm.org/download.html

Step2. install llvmlite >=0.28

git clone https://github.com/numba/llvmlite.git

Step3. install dependencies

sudo apt-get install build-essential
pip3 install cython

Step4. install numba (testing)

pip3 install numba

Reference Documents

Last updated