ImportError: No module named skbuild
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wo02fy/opencv-python/
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/__init__.py", line 7, in <module>
from torchvision import datasets
File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/datasets/__init__.py", line 9, in <module>
from .fakedata import FakeData
File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/datasets/fakedata.py", line 4, in <module>
from .. import transforms
File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/transforms/__init__.py", line 1, in <module>
from .transforms import *
File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/transforms/transforms.py", line 17, in <module>
from . import functional as F
File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/transforms/functional.py", line 18, in <module>
from . import functional_pil as F_pil
File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/transforms/functional_pil.py", line 387, in <module>
def resize(img, size, interpolation=Image.BILINEAR):
AttributeError: module 'PIL.Image' has no attribute 'BILINEAR'
https://www.programminghunter.com/article/71831384810/
/usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h:326:22: warning: variable ‘num_ivalue_args’ set but not used [-Wunused-but-set-variable] constexpr size_t num_ivalue_args = sizeof…(ivalue_arg_indices); ^~~~~~~~~~~~~~~
基于python3.6 安装方式(以下方式为1.8.0 为例):
wget https://nvidia.box.com/shared/static/p57jwntv436lfrd78inwl7iml6p13fzh.whl -O
torch-1.8.0-cp36-cp36m-linux_aarch64.whl
sudo apt-get install python3-pip libopenblas-base libopenmpi-dev
pip3 install Cython
pip3 install numpy torch-1.8.0-cp36-cp36m-linux_aarch64.whl
|