How to Install PyTorch on Ubuntu

October 30, 2019 Liquid Web

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:
Anaconda
apt-get update -y
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
conda config --set auto_activate_base false
conda install pytorch torchvision cpuonly -c pytorch
conda deactivate

PIP
apt-get install -y python3-venv
mkdir pytorch_awesome
cd pytorch_awesome
pytorch_awesome#
python3 -m venv pytorch-awesome
pip install torch==1.3.0+cpu torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
python
Ctrl+d


The related article for this article can be found here: https://www.liquidweb.com/kb/how-to-install-pytorch-on-ubuntu/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or
For more information on our products visit: https://www.liquidweb.com/products/ 

To learn more about our current specials visit 
https://www.liquidweb.com/products/dedicated/
https://www.liquidweb.com/products/vps/
https://www.liquidweb.com/products/cloud-dedicated/

Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our newsletter to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How To Setup A Python Virtual Environment in Ubuntu 18.04
How To Setup A Python Virtual Environment in Ubuntu 18.04

In this video, we will do a walkthrough of how to set up a virtual environment on Ubuntu 18.04.

Next Video
Why Name Hero Chose Interworx as Their Control Panel
Why Name Hero Chose Interworx as Their Control Panel

Name Hero provides high speed and scalable solutions for SMBs at an affordable rate, along with reselling h...

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now