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
$ ./install-pytorch.sh
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!
Not to contradict but from what I understand he is not using sdkmanager on a separate ubuntu environment on a host machine they way you would when working with TX2 for example.
I believe he is creating a boot SD directly from the download page and using etcher to prepare it.
It should boot on the nano and analyze the nano environment and reconfigure itself based on finding a keyboard and hdmi.
Maybe he has the wrong image? or a bad or too small SD card?
Thanks AAstaLLL,
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?
Bert
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.
We still have some user developing their application with python 2.
To let them get started easier, some of our courses have both python version support.
In general, we are moving forward to use python 3 only.
This should be a temporal issue during the migration.