美文网首页
在 树莓派4B Ubuntu22.04LTS 上 部署 Cond

在 树莓派4B Ubuntu22.04LTS 上 部署 Cond

作者: yuanthu | 来源:发表于2024-01-06 18:10 被阅读0次

下载并安装安装包(不需要管理员身份):

wget https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh
chmod +x Archiconda3-0.2.3-Linux-aarch64.sh
bash Archiconda3-0.2.3-Linux-aarch64.sh

首先安装一些依赖:

sudo apt-get install libopenblas-dev cython3 libatlas-base-dev m4 libblas-dev cmake
sudo apt-get install python3-dev python3-yaml python3-setuptools python3-wheel python3-pillow python3-numpy

设置无CUDA

export USE_CUDA=0
export USE_DISTRIBUTED=0
export USE_MKLDNN=0
export USE_NNPACK=0
export USE_QNNPACK=0

设置交换内存

sudo dd if=/dev/zero of=/swapfile count=4096 bs=1M
sudo chmod 600 /swapfile
# Disable the swap space
sudo swapoff -v /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# open the /etc/fstab
sudo nano /etc/fstab
#add the following on the last row
/swapfile none swap sw 0 0
#save and exit

安装pytorch

conda create -n torch38 python=3.8
conda activate torch38
sudo apt install python3-pip
pip3 install torch torchvision torchaudio
# or
conda install pytorch

安装pyqt5

sudo apt update
sudo apt-get install python3-pyqt5
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

验证

python3 -m PyQt5.Qt --version

相关文章

网友评论

      本文标题:在 树莓派4B Ubuntu22.04LTS 上 部署 Cond

      本文链接:https://www.haomeiwen.com/subject/wtmwndtx.html