TW-T506s

TW-T506s,第1张

  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 "", line 1, in 
  File "/usr/local/lib/python3.6/dist-packages/torchvision-0.8.0a0-py3.6-linux-aarch64.egg/torchvision/__init__.py", line 7, in 
    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 
    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 
    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 
    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 
    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 
    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 
    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





欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/943885.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-18
下一篇 2022-05-18

发表评论

登录后才能评论

评论列表(0条)

保存