I freed up some space on the Nano, and I left the installation run for something like 4 days, but at the end it failed. I didn’t copy the error precisely, but it was something about the dependencies tree becoming to deep to resolve, or something similar.
So, now I did something else.
I flashed a new card with Jetpack 4.5, and followed the instructions in the official post again.
sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
sudo apt-get install python3-pip
sudo pip3 install -U pip testresources setuptools==49.6.0
sudo pip3 install -U numpy==1.16.1 future==0.18.2 mock==3.0.5 h5py==2.10.0 keras_preprocessing==1.1.1 keras_applications==1.0.8 gast==0.2.2 futures protobuf pybind11
sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v45 tensorflow
Then, installed protobuf by (as I was suggested to do here:
sudo apt-get install protobuf-compiler
Finally, I followed the official instructions to install the TF object detection API, so I did:
git clone https://github.com/tensorflow/models.git
cd models/research
# Compile protos.
protoc object_detection/protos/*.proto --python_out=.
# Install TensorFlow Object Detection API.
cp object_detection/packages/tf2/setup.py .
python3 -m pip install --use-feature=2020-resolver .
The process now fails immediately, with the error:
ERROR: Cannot install object-detection because these package versions have conflicting dependencies.
The conflict is caused by:
tf-models-official 2.6.0 depends on tensorflow-addons
tf-models-official 2.5.1 depends on tensorflow-addons
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependenciesr paste code here
I’m sorry for all the posts, but I’ve been stuck on this forever. Now I literally followed the instruction, without installing anything else, on a newly flashed SD card…if this doesn’t work like this, I really don’t know how to do it :(
EDIT: I also tried using
python3 -m pip install --use-feature=2020-resolver .
but I got the same error