Hi @nils, was there a more detailed compiler error, or is above all the error text that was output? It seems like the build stopped or was killed. You might want to try mounting swap memory and make sure you have enough disk space. You can keep an eye on tegrastats/jtop or look for out-of-memory messages in dmesg log.
I personally haven’t tried building under Python 3.8 or virtualenv, so unsure if that is related or not.
Hi @dusty_nv, thanks for your reply! I found out that by cloning the pytorch repo from GitHub, I received the 1.7.0a1 version. I have now pinned it to 1.6.0 and I am now building this version. Fingers crossed!
Hi again,
Thanks for your hints.
I realized that I made a mistake as I must have chosen python 2.7 instead. After realizing this mistake, wget command runs successfully but I still get an error in the pip install line. I tried with both 1.4 and 1.3 versions and both of them gave me the same error message “ERROR: torch-1.3.0-cp27-cp27mu-linux_aarch64.whl is not a supported wheel on this platform.”
the error message come with a few more warnings so I paste them here too.
WARNING: The directory ‘/home/dlinano/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory ‘/home/dlinano/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
ERROR: torch-1.3.0-cp27-cp27mu-linux_aarch64.whl is not a supported wheel on this platform.
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
I also tried the following command:
pip3 install pytorch
I faced with the following warning and error messages
WARNING: The directory ‘/home/dlinano/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory ‘/home/dlinano/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting pytorch
Downloading https://files.pythonhosted.org/packages/ee/67/f403d4ae6e9cd74b546ee88cccdb29b8415a9c1b3d80aebeb20c9ea91d96/pytorch-1.0.2.tar.gz
Building wheels for collected packages: pytorch
WARNING: Building wheel for pytorch failed: [Errno 13] Permission denied: ‘/home/dlinano/.cache/pip/wheels/df’
Failed to build pytorch
Installing collected packages: pytorch
Running setup.py install for pytorch … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-zin_95cp/pytorch/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-zin_95cp/pytorch/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’“‘))’ install --record /tmp/pip-record-ug3x0o5w/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-zin_95cp/pytorch/
Complete output (5 lines):
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-zin_95cp/pytorch/setup.py”, line 11, in
raise Exception(message)
Exception: You tried to install “pytorch”. The package named for PyTorch is “torch”
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '”‘"’/tmp/pip-install-zin_95cp/pytorch/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-zin_95cp/pytorch/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-ug3x0o5w/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
WARNING: The directory ‘/home/dlinano/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory ‘/home/dlinano/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting Cython
Downloading https://files.pythonhosted.org/packages/ad/4b/9e53bcce3c959fd0db143626e573210bba07be810fe8d7296373948c4183/Cython-0.29.21-py2.py3-none-any.whl (974kB)
|████████████████████████████████| 983kB 654kB/s
Installing collected packages: Cython
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.6/dist-packages/cython.py’
Consider using the --user option or check the permissions.
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
thanks for the hint. but I still get the same error:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.6/dist-packages/cython.py’
Consider using the --user option or check the permissions.
For your information, before getting this error message, I also got some warning about “Failed to establish a new connection”
I have borrowed the jetson nano from our university so it could very well be that I do not have all the administrative permissions.
If you have sudo permissions, can you try sudo pip3 install Cython ?
If that works, run the other pip3 commands with sudo, too. If you continue having trouble, you might want to get a fresh SD card and re-flash with the latest JetPack release to rule out any issues with your environment.
Hi @xushoushuai, which version of JetPack-L4T are you on (please post the results of cat /etc/nv_tegra_release command), and which PyTorch wheel/URL did you install?
You should download a PyTorch wheel for your version of JetPack-L4T from the first post in this topic.
nvidia@nvidia-desktop:~/Downloads/torchvision$ sudo python3 setup.py install
Traceback (most recent call last):
File “setup.py”, line 13, in
import torch
File “/home/nvidia/.local/lib/python3.6/site-packages/torch/init.py”, line 135, in
_load_global_deps()
File “/home/nvidia/.local/lib/python3.6/site-packages/torch/init.py”, line 93, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File “/usr/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory
nvidia@nvidia-desktop:~/Downloads/torchvision$ OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory
-bash: OSError:: command not found
ls /usr/local:bin cuda cuda-10.0 etc games include jetson_stats lib man sbin share src
R32 (release), REVISION: 3.1, GCID: 18186506, BOARD: t186ref, EABI: aarch64, DATE: Tue Dec 10 07:03:07 UTC 2019
I use Jetpack 4.3 l4t 32.3.1 CUDA 10.0.326 cuDNN 7.6.3.28
torch-1.5.0-cp36-cp36m-linux_aarch64.whl
Because I couldn’t open the WHL download link in China, I found a torch-1.5.0-cp36-cp36m-linux_aarch64.whl from the Internet was successfully installed, but the above problems were encountered during the installation of torchvision 0.6.0
.