在 arm64 Debian10中配置环境遇到的若干问题

ImportError: /lib/aarch64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26′ not found (required by /usr/local/lib/python3.7/dist-packages/torchvision/_C.cpython-37m-aarch64-linux-gnu.so)

From a fresh start of debian:10:

echo 'deb http://deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
apt update
cat <<EOF > /etc/apt/preferences.d/pin
Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=testing
Pin-Priority: 650
EOF

apt install -qq -y -t testing build-essential

缺少 libopenblas.so

您必须安装OpenBlas系统库。尝试:

sudo apt-get install libopenblas-dev

https://download.pytorch.org/whl/torch_stable.html

is not a supported wheel on this platform.

python3 -m pip install –upgrade pip

升级到python3.9后

  File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 55, in <module>
    unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
AttributeError: 'HTMLParser' object has no attribute 'unescape'

python3 -m pip install –upgrade setuptools

File “/usr/local/lib/python3.9/dist-packages/torch/init.py”, line 196, in
from torch._C import *
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

pip install numpy –upgrade

# celery -A travel worker -P threads -c 3 -l INFO -f ./celery.txt
Usage: celery worker [OPTIONS]
Try ‘celery worker –help’ for help.

Error: Invalid value for ‘-P’ / ‘–pool’: invalid choice: threads. (choose from prefork, eventlet, gevent, solo)

pip3 install “celery<5.0”

pip3 install opencv-python pip3 install scikit-learn

apt install python3-sklearn pip3 install opencv-python

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Back to Top