How to Install PyTorch on Ubuntu

In this video, we describe how to install PyTorch on a Ubuntu 16.04 server. PyTorch is a machine learning library used by developers to make software like natural language processors.

Commands used:
apt-get update -y
curl -O
source ~/.bashrc
conda config –set auto_activate_base false
conda install pytorch torchvision cpuonly -c pytorch
conda deactivate

apt-get install -y python3-venv
mkdir pytorch_awesome
cd pytorch_awesome
python3 -m venv pytorch-awesome
pip install torch==1.3.0+cpu torchvision==0.4.1+cpu -f

The related article for this article can be found here:

For more information about this and other topics, visit us at or
For more information on our products visit:

To learn more about our current specials visit

Dedicated Server Hosting


Video by: Justin Palmer

Duration: 4:28
Publisher: Liquid Web
You can watch this video also at the source.

Inxy Hosting CDN Marketplace