干货!基于RK3568的 AI 人工智能环境搭建步骤

操作步骤

1、实验箱(或者电脑)需要联网

2、拷贝文件

拷贝 Miniconda3-latest-Linux-aarch64.sh 到开发板(电脑上的Ubuntu安装使用Miniconda3-latest-Linux-x86_64.sh)

3、运行安装文件

运行安装 Miniconda3-latest-Linux-aarch64.sh(电脑上的Ubuntu安装使用Miniconda3-latest-Linux-x86_64.sh)

复制代码

./Miniconda3-latest-Linux-aarch64.sh

回车(一直回车到提示输入"yes")->yes->回车->yes

4、更新环境变量

复制代码

source /home/tronlong/.bashrc

5、更新环境

复制代码

/home/tronlong/miniconda3/condabin/conda shell.bash hook

6、创建虚拟环境

创建python虚拟环境,虚拟环境名字为:rk3568-python

复制代码

conda create -n rk3568-python python==3.11

7、进入虚拟环境

复制代码

conda activate rk3568-python

8、安装opencv-python

复制代码

pip install opencv-python - i https://pypi.tuna.tsinghua.edu.cn/simple

9、更新软件源和软件

复制代码

sudo apt update sudo apt upgrade sudo apt-get dist-upgrade

10、安装setuptools

复制代码

pip install launchpadlib pip install setuptools==45.2

11、安装jupyter和jupyterlab

复制代码

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyterlab

12、获取生成码

复制代码

jupyter notebook --generate-config ipython from jupyter_server.auth import passwd passwd() 输密码:tronlong exit()

拷贝生成的码

13、添加内容

在jupyter_notebook_config.py添加内容

根据实际生成的码进行修改

复制代码

c.ServerApp.ip = '0.0.0.0' c.ServerApp.password = 'argon2:$argon2id$v=19$m=10240,t=10,p=8$jEef4LFNODvFiXh4XFNwhw$yRwwFOFOWtVp1/cN/cwXMJl3zQubclPkhhHBEsswo6k' c.ServerApp.open_browser = False c.ServerApp.port = 8888 c.ServerApp.allow_remote_access = True

添加后保存退出

14、安装nodejs npm

复制代码

sync sudo apt install nodejs npm

15、安装SSH

复制代码

sudo apt install openssh-server

16、检查安装

复制代码

jupyter lab --allow-root

然后打开次连接,第一次进入需要输入密码,密码为第12步骤输入的密码

然后就可以看到如下界面,则证明安装成功。

关闭:关掉网页,然后终端ctrl+c,输入y,回车。

17、安装插件

复制代码

pip install scikit-build -i https://pypi.tuna.tsinghua.edu.cn/simple pip install cmake -i https://pypi.tuna.tsinghua.edu.cn/simple pip install Cython -i https://pypi.tuna.tsinghua.edu.cn/simple pip install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simple pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

复制代码

pip install cv -i https://pypi.tuna.tsinghua.edu.cn/simple pip install opencv-python-headless -i https://pypi.tuna.tsinghua.edu.cn/simple pip install pyserial -i https://pypi.tuna.tsinghua.edu.cn/simple

复制代码

pip install absl-py pip install pygame pip install baidu-aip pip install torch -i https://pypi.tuna.tsinghua.edu.cn/simple pip install rospkg、pip install catkin-tools pip install Adafruit_BBIO pip install Adafruit_SSD1306 pip install Pillow pip install chardet pip install matplotlib pip uninstall setuptools pip install setuptools==45.2 pip install demjson

18、安装arm_lib库

将src拷贝到开发板(或者电脑ubuntu)中

复制代码

cd src/Dofbot/0.py_install

然后安装arm_lib库:

复制代码

python setup.py install

安装完毕后如下显示:

相关推荐
endcy20165 小时前
基于Spring AI的RAG和智能体应用实践
人工智能·ai·系统架构
Blossom.1186 小时前
移动端部署噩梦终结者:动态稀疏视觉Transformer的量化实战
java·人工智能·python·深度学习·算法·机器学习·transformer
FPGA小迷弟6 小时前
ChatGPT回答用AI怎么怎么赚钱
大数据·人工智能
轻微的风格艾丝凡6 小时前
卷积的直观理解
人工智能·深度学习·神经网络·算法·计算机视觉·matlab·cnn
月下倩影时6 小时前
视觉进阶篇——机器学习训练过程(手写数字识别,量大管饱需要耐心)
人工智能·学习·机器学习
PixelMind6 小时前
【超分辨率专题】HYPIR:扩散模型先验与 GAN 对抗训练相结合的新型图像复原框架
人工智能·生成对抗网络·扩散模型·图像复原
说私域7 小时前
从裂变能力竞争到技术水平竞争:开源AI智能名片链动2+1模式S2B2C商城小程序对微商企业竞争格局的重塑
人工智能·小程序·开源
xybDIY7 小时前
基于 Tuya.AI 开源的大模型构建智能聊天机器人
人工智能·机器人·开源
智慧地球(AI·Earth)9 小时前
GPT-5.1发布!你的AI更暖更智能!
人工智能·gpt·神经网络·aigc·agi
宁渡AI大模型9 小时前
从生成内容角度介绍开源AI大模型
人工智能·ai·大模型·qwen