I am unable to get PyTorch installed on my Jetson Nano. I am following the Jetson Two Days to a Demo training program and am at the point that introduces transfer learning. My install of JetPack is 1 week old and everything in the Hello AI World has run perfectly (except for this: sudo apt-get install libpython3-dev which produced an error “you have held broken packages” that I was not able to resolve )
The procedures say to run: cd jetson-inference/build
which brings up the tool and allows me to select PyTorch v1.1.0 for either Python 2 or 3. I have tried to run both options a couple of times without success.
The error for both choices is:
Checking for ‘qtbase5-dev’ deb package… not installed
Failed to install ‘qtbase5-dev’ deb package.
errors encountered during installation, exiting with code 1
I have tried installing qtbase5-dev using: apt-get install qtbase5-dev qtbase5-dev-tool and the error there is
E: Unable to correct problems, you have held broken packages
Thanks for the suggestion but the steps did not work.
The first 3 commands completed without error but the 4th command had had the same error “E: Unable to correct problems, you have held broken packages.”
As expected the ./install-pytorch.sh also has the same error as before.
Any other ideas?
Thanks for the suggestion. It took a long time but a few days ago I just decided to reinstall everything on my Nano and things are mostly fine now. A different problem is that I am not able to install Python 2.x. I do however have Python 3.x installed fine.
Why do so many of the the Jetson tutorials still have 2.x Python support. This really makes things more cumbersome in the tutorials. Are there really users that MUST use Python 2?
I was going through the ‘8 hour’ course for the Jetson Nano. The course supported Python 2 and Python 3 but it would have been much cleaner if it had just supported only Python 3. I suspect very few people are only able to run Python 2.