1. 程式人生 > >ubuntu快速安裝tensorflow\pytorch

ubuntu快速安裝tensorflow\pytorch

sudo apt update
sudo apt install python3-dev python3-pip

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --user --upgrade tensorflow

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ torch torchvision