虚拟机设置:
ubuntu20.04,镜像的下载地址可以在阿里站下载:
https://developer.aliyun.com/mirror/?utm_content=g_1000307095
1.更换镜像源
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
2.安装必要的软件
sudo apt-get install neofetch
sudo apt-get install net-tools vim openssh-client
sudo apt-get install openssh-server
为了能够通过ssh连接虚拟机,虚拟机的网络设置设置为如下:
3.安装AI部署工具:
下载地址:<https://netstorage.allwinnertech.com:5001/sharing/ZIruS49kj>
下载完成后可以使用mobaxterm将文件上传到虚拟机
sudo apt-get install python3 python3-pip python3-virtualenv
pip换源:
https://developer.aliyun.com/mirror/pypi?spm=a2c6h.13651102.0.0.249b1b11xQeQSU
接下来按照官方的安装步骤走即可,没有 License 许可的话先不管。
出现错误:
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.
sudo apt install python3-testresources
安装成功: