I am trying to install torchvision on a virtual environment on the Jetson Nano 2 GB Developer Kit version. I was following along with this thread, however when I tried running python3 setup.py install --user, I ran into an error of
You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read “.pth” files from.
How am I able to resolve the issue? The terminal says that I can add the installation directory to the PYTHONPATH environment variable; is this safe to do on the device?
Also, there is no need to rerun the sudo install lines since they are installed system-wide and can be accessed by the venv, right?
Is installing the prebuilt package the same as following along with the instructions in the thread I linked? What is the difference between doing that and building from source?
To lower the installation effort, we usually provide some packages to allow users to install it directly.
The package built from the source should be identical, but it might take hours to finish.
In the link you shared, there is no python3 setup.py install --user command.
To build it from the source, you should run python3 setup.py bdist_wheel instead.