Installing cupy on jetson nano

I have previously managed to install cupy on older versions of jetson nano images. Unfortunately, the last time was in spring 2020.

When repeating this now with the latest version of the images “jetbot-043_nano…” or “jetson-nano-jp46…” it craches completely when installing using pip3 install cupy.

my previous map for installing was the following, incl a virtual desktop installation:

sudo apt-add-repository ppa:x2go/stable

sudo apt-get update

sudo apt-get install x2goserver x2goserver-xsession

sudo apt-get install x2gomatebindings

sudo apt-get install xfce4 xfce4-terminal

sudo apt-get install gnome-icon-theme tango-icon-theme

sudo apt-get update

sudo apt-get install nano

#wget https://bootstrap.pypa.io/get-pip.py

#sudo python3 get-pip.py

sudo apt-get install -y python3-pip

rm get-pip.py

pip install numpy

pip install cupy

sudo apt-get install python-opencv

pip install --extra-index-url Index of /compute/redist/jp/v42 tensorflow-gpu==1.13.1+nv19.3

pip install scipy

pip install keras

If someone has done an installation recently that was successful, please respond.

Kind regard Magnus

Hi again,
problem solved after 96 hours of googling :-)

For the image “jetson-nano-jp46…” the following setup will work. I had a problem with numpy version 1.19.5 in one of my first configurations so I changed to version 1.19.4
The beginners misstake was that cython needed to be installed prior cupy
The installation of cupy takes a long time, hours… but it is worth the time.

sudo apt-get update
sudo apt-get install nano
sudo apt-get install -y python3-pip
pip3 install cython
pip3 install cupy
pip3 uninstall numpy
pip3 install numpy==1.19.4

Kind regards Magnus

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.