0
1

More than 3 years have passed since last update.

jetson agx xavierにPyTorchをインストールする

Posted at

こちらから転載しています
https://wally-ngm.hatenablog.com/entry/2021/02/05/201403

pipからpytorchをインストールしようとすると,このようなエラーがでちゃいました...

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7PRgOy/torch/

ARM用にビルドされたバイナリを使う必要がある

こんな手順でできるそうです.
これは公式がサポートしてくれています.
1.7.0をインストールする手順を示していますが,他のバージョンのインストールも可能です.
(URLとかは先程のリンクにあります!)

pip3 install cython
wget https://nvidia.box.com/shared/static/cs3xn3td6sfgtene6jdvsxlr366m2dhq.whl
mv cs3xn3td6sfgtene6jdvsxlr366m2dhq.whl  torch-1.7.0-cp36-cp36m-linux_aarch64.whl
pip3 install torch-1.7.0-cp36-cp36m-linux_aarch64.whl
sudo apt install libopenblas-dev

cythonをインストールせずに行うとこういうエラーがでます

ModuleNotFoundError: No module named 'Cython'
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3caqz9c0/numpy/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-qk46wyli-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-3caqz9c0/numpy/

libopenblas-devをインストールせずにtorchをimportするとこんなエラーもでます

libopenblas.so.0: cannot open shared object file: No such file or directory
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1