--------- start 添加用户---------- # su root # adduser xu # passwd xu # chmod -v u+w /etc/sudoers # vim /etc/sudoers 在这一行root ALL=(ALL) ALL下新增 # xu ALL=(ALL) ALL # add by jiangshan with hands # chmod -v u-w /etc/sudoers 退出root用户 # exit --------- end 添加用户---------- --------- start 创建虚拟环境---------- python3.6 python3 -m venv rk415 source ./rk415/bin/activate python3 -m pip install --upgrade pip pip install -r packages/requirements-cpu.txt pip install torchvision==0.6.1 pip install -i https://pypi.douban.com/simple/ pip install opencv-python==4.3.0.38 pip install packages/rknn_toolkit-1.6.1-cp36-cp36m-linux_x86_64.whl # export requirement.txt pip list --format=freeze > requirement.txt # test python3 from rknn.api import RKNN deactivate --------- end 创建虚拟环境---------- --------------------- requirement.txt: --------------------- absl-py==1.4.0 astor==0.8.1 cached-property==1.5.2 certifi==2022.12.7 chardet==3.0.4 charset-normalizer==2.0.12 click==8.0.4 cycler==0.11.0 dataclasses==0.8 decorator==5.1.1 dill==0.2.8.2 Flask==1.0.2 flatbuffers==1.10 future==0.18.3 gast==0.5.3 google-pasta==0.2.0 graphviz==0.8.4 grpcio==1.48.2 h5py==2.8.0 idna==2.8 importlib-metadata==4.8.3 install==1.3.5 itsdangerous==2.0.1 Jinja2==3.0.3 joblib==1.1.1 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.2 kiwisolver==1.3.1 lmdb==0.93 Markdown==3.3.7 MarkupSafe==2.0.1 matplotlib==2.2.0 mxnet==1.5.0 networkx==1.11 numpy==1.16.3 onnx==1.6.0 onnx-tf==1.2.1 opencv-python==4.3.0.38 Pillow==5.3.0 pip==21.3.1 ply==3.11 protobuf==3.11.2 psutil==5.6.2 pyparsing==3.0.9 python-dateutil==2.8.2 pytz==2023.3 PyYAML==6.0 requests==2.22.0 rknn-toolkit==1.6.1 ruamel.yaml==0.15.81 scikit-learn==0.24.2 scipy==1.5.4 setuptools==59.6.0 six==1.16.0 sklearn==0.0 tensorboard==1.14.0 tensorflow==1.14.0 tensorflow-estimator==1.14.0 termcolor==1.1.0 threadpoolctl==3.1.0 torch==1.5.1 torchvision==0.6.1 typing_extensions==4.1.1 urllib3==1.25.11 Werkzeug==2.0.3 wheel==0.37.1 wrapt==1.15.0 zipp==3.6.0 ==================================== QA: ModuleNotFoundError: No module named 'tkinter': su root # python2.7 sudo yum install tkinter # python3 sudo yum install python3-tkinter
标签:rknn,1.6,toolkit,install,pip,python3 From: https://www.cnblogs.com/jeshy/p/17348811.html