Python 3.11 安装Pytorch开发环境
# 环境 Ubuntu 18.04, 选择环境 CUDA 11.6, 之前已安装驱动和CUDA,CUDNN环境
# 安装 Python3.11
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.11
# 配置默认的python版本
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1
# 安装pip
sudo apt install python3.11-venv
python3.11 -m ensurepip
安装Pytorch
python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cu116
## 实际上,我是
wget https://download.pytorch.org/whl/cu116/torch-1.13.0%2Bcu116-cp311-cp311-linux_x86_64.whl
python -m pip install torch-1.13.0+cu116-cp311-cp311-linux_x86_64.whl
# 安装 torchvision
打开 https://dow