Ubuntu下安装wget、yum、pip、pytorch

Wget

sudo apt-get update
sudo apt-get install wget

yum

sudo apt install yum

pip

wget https://bootstrap.pypa.io/get-pip.py
sudo apt-get install python3.8-distutils
alias python='/usr/bin/python3'
python get-pip.py

pytorch

pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp36-cp36m-linux_x86_64.whl
pip3 install torchvision -i https://pypi.douban.com/simple

 

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页