|
报错如下:
>>> import rknn.api import RKNN
File "<stdin>", line 1
import rknn.api import RKNN
^
SyntaxError: invalid syntax
>>> from rknn.api import RKNN
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/toybrick/.local/lib/python3.6/site-packages/rknn/api/__init__.py", line 1, in <module>
from rknn.api.rknn import RKNN
File "/home/toybrick/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 15, in <module>
from .rknn_base import RKNNBase
File "rknn/api/rknn_base.py", line 14, in init rknn.api.rknn_base
File "/home/toybrick/.local/lib/python3.6/site-packages/rknn/base/acuitylib/__init__.py", line 1, in <module>
from acuitylib.optimize.optimizer import Optimizer
File "/home/toybrick/.local/lib/python3.6/site-packages/rknn/base/acuitylib/__init__.py", line 1, in <module>
from acuitylib.optimize.optimizer import Optimizer
File "rknn/base/acuitylib/optimize/optimizer.py", line 17, in init rknn.base.acuitylib.optimize.optimizer
File "rknn/base/acuitylib/optimize/rules/merge_layer.py", line 3, in init rknn.base.acuitylib.optimize.rules.merge_layer
File "/home/toybrick/.local/lib/python3.6/site-packages/rknn/base/acuitylib/layer/__init__.py", line 2, in <module>
from acuitylib.layer.add import *
File "rknn/base/acuitylib/layer/add.py", line 1, in init rknn.base.acuitylib.layer.add
File "rknn/base/acuitylib/layer/acuitylayer.py", line 9, in init rknn.base.acuitylib.layer.acuitylayer
File "rknn/base/acuitylib/core/tensor.py", line 3, in init rknn.base.acuitylib.core.tensor
File "rknn/base/acuitylib/tensor_factory.py", line 3, in init rknn.base.acuitylib.tensor_factory
File "rknn/base/acuitylib/dtype/dynamic_fixed_point.py", line 6, in init rknn.base.acuitylib.dtype.dynamic_fixed_point
File "/home/toybrick/.local/lib/python3.6/site-packages/rknn/base/acuitylib/dtype/quantized_dtype.py", line 8, in <module>
from acuitylib.math import compute_quantize_kl_divergence
File "rknn/base/acuitylib/math.py", line 3, in init rknn.base.acuitylib.math
File "/home/toybrick/.local/lib/python3.6/site-packages/scipy/stats/__init__.py", line 379, in <module>
from .stats import *
File "/home/toybrick/.local/lib/python3.6/site-packages/scipy/stats/stats.py", line 180, in <module>
import scipy.special as special
File "/home/toybrick/.local/lib/python3.6/site-packages/scipy/special/__init__.py", line 641, in <module>
from ._ufuncs import *
ImportError: libgfortran.so.4: cannot open shared object file: No such file or directory
目前pip list如下,我find了一下只有libgfortran.so.5,这个就很尴尬了。。
Package Version
----------------- ----------
absl-py 0.7.1
asn1crypto 0.24.0
astor 0.8.0
Babel 2.5.3
blivet 3.0.0b1
blivet-gui 2.1.9
CairoSVG 1.0.20
certifi 2020.4.5.2
cffi 1.11.5
chardet 3.0.4
Click 7.0
coverage 4.5.1
cryptography 2.3
cupshelpers 1.0
Cython 0.29.19
decorator 4.2.1
dill 0.2.8.2
dnspython 1.15.0
docker 3.2.1
docker-pycreds 0.2.2
Flask 1.0.2
flatbuffers 1.10
fros 1.1
gast 0.2.2
gpg 1.10.0
grpcio 1.17.1
gssapi 1.5.0
h5py 2.8.0
humanize 0.5.1
idna 2.5
iniparse 0.4
initial-setup 0.3.56
ipaclient 4.7.2
ipalib 4.7.2
ipaplatform 4.7.2
ipapython 4.7.2
IPy 0.81
isc 2.0
itsdangerous 1.1.0
Jinja2 2.10.1
jwcrypto 0.4.2
langtable 0.0.38
lmdb 0.93
Markdown 3.1.1
MarkupSafe 0.23
netaddr 0.7.19
netifaces 0.10.6
networkx 1.11
notify2 0.3.1
ntplib 0.3.3
numpy 1.16.3
olefile 0.46
onnx 1.4.1
onnx-tf 1.2.1
ordered-set 2.0.2
pid 2.2.3
Pillow 5.3.0
pip 20.1.1
ply 3.11
protobuf 3.6.1
psutil 5.6.2
pwquality 1.4.0
pyasn1 0.3.7
pyasn1-modules 0.1.5
pycairo 1.16.3
pycparser 2.14
pycrypto 2.6.1
pycups 1.9.72
pycurl 7.43.0.2
pydbus 0.6.0
pyenchant 2.0.0
pygobject 3.28.3
pyinotify 0.9.6
pykickstart 3.12
pyOpenSSL 17.3.0
pyparted 3.11.0
PySocks 1.6.8
pystray 0.14.3
python-augeas 0.5.0
python-dateutil 2.6.1
python-dmidecode 3.12.2
python-ldap 3.1.0
python-meh 0.46
python-xlib 0.20
python-yubico 1.3.2
pytoml 0.1.18
pytz 2017.2
pyudev 0.21.0
pyusb 1.0.2
pyxdg 0.25
PyYAML 5.1
qrcode 5.1
registries 0.1
requests 2.22.0
requests-file 1.4.3
requests-ftp 0.3.1
rknn-toolkit 1.3.0
rpm 4.14.2.1
ruamel.yaml 0.15.81
scipy 1.3.0
sepolicy 1.1
setools 4.1.1
setroubleshoot 1.1
setuptools 39.1.0
sh 1.12.14
simpleline 1.1
six 1.11.0
slip 0.6.4
slip.dbus 0.6.4
smartcols 0.3.0
sos 3.7
SSSDConfig 1.16.4
systemd-python 234
tensorboard 1.10.0
tensorflow 1.10.1
termcolor 1.1.0
typing 3.6.6
typing-extensions 3.7.2
urllib3 1.24.2
websocket-client 0.47.0
Werkzeug 0.15.4
wheel 0.33.4
wrapt 1.10.11
|
|