rknn-toolkit2 icon indicating copy to clipboard operation
rknn-toolkit2 copied to clipboard

CAN NOT install Toolkit2 1.4 on Ubuntu-20.4 with Python 3.8

Open PJ5168 opened this issue 2 years ago • 5 comments

There is no Python 3.6 available, therefore use 3.8. The numpy, bfloat16 are installed. ERROR message as following:

(RKNN38) pj@B560M:~/rknn-toolkit2$ pip install bfloat16 Requirement already satisfied: bfloat16 in /home/pj/anaconda3/envs/RKNN38/lib/python3.8/site-packages (1.1)

(RKNN38) pj@B560M:~/rknn-toolkit2$ sudo pip3 install packages/rknn_toolkit2cp38.whl Processing ./packages/rknn_toolkit2-1.4.0_22dcfef4-cp38-cp38-linux_x86_64.whl Collecting bfloat16==1.1 Using cached bfloat16-1.1.tar.gz (550 kB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tz_fjqmv/bfloat16/setup.py'"'"'; file='"'"'/tmp/pip-install-tz_fjqmv/bfloat16/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-tz_fjqmv/bfloat16/pip-egg-info cwd: /tmp/pip-install-tz_fjqmv/bfloat16/ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-tz_fjqmv/bfloat16/setup.py", line 10, in import numpy as np ModuleNotFoundError: No module named 'numpy' ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

PJ5168 avatar Jan 08 '23 03:01 PJ5168

I am having the same error and using ubuntu 20.4 and python 3,8 as well ..

sarranetor avatar Mar 28 '23 06:03 sarranetor

i fixed this by installing to venv: python3-dev

ttxida avatar Apr 17 '23 13:04 ttxida

OK with 1.5 Thanks!~

PJ5168 avatar Jun 20 '23 04:06 PJ5168

WHL build ok with Python3.8 but still fail to load the rknn.api module

Python 3.8.0 (default, Nov 6 2019, 21:49:08) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.

from rknn.api import RKNN Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'rknn'

PJ5168 avatar Jun 20 '23 08:06 PJ5168

from rknn.api import RKNN

I have the same problem.

chuqingq avatar Oct 22 '23 11:10 chuqingq