install torchvision v0.7.0 on the Jetson nano. i follow the steps.
sudo apt-get install libjpeg-dev zlib1g-dev
git clone --branch v0.7.0 https://gitee.com/zero-one-game/vision torchvision
cd torchvision
sudo python3 setup.py install
cd ../ # attempting to load torchvision from build dir will result in import error
pip3 install 'pillow<7'
At the end Terminal output this message:
Using /usr/local/lib/python3.6/dist-packages
Finished processing dependencies for torchvision==0.7.0a0+78ed10c
But it still outputs errors like this
ModuleNotFoundError: No module named ‘torchvision’
In file included from /home/sm/Downloads/torchvision/torchvision/csrc/cpu/decoder/memory_buffer.h:3:0,
from /home/sm/Downloads/torchvision/torchvision/csrc/cpu/video_reader/VideoReader.cpp:6:
/home/sm/Downloads/torchvision/torchvision/csrc/cpu/decoder/defs.h:12:10: fatal error: libavcodec/avcodec.h: No such file or directory
#include <libavcodec/avcodec.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1