PyTorch introduction (virtual environment)

Only how to install pytorch

Development environment OS: Ubuntu 16.04 Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz Gravo: GeForce GTX 1080 x 2 cuda 8.0 cudnn 5.1

The head family is here http://pytorch.org/

Reference (rather enough here) http://kazuto1011.github.io/irvs-tutorials/mnist/pytorch/

All commands on terminal below

For python2 series

Build a virtual environment named pytorch2 (virtual environment name is free)

conda create -n pytorch2 python=2.7.11 -y

Enable virtual environment

source activate pytorch2

Install pytorch

conda install pytorch torchvision -c pytorch

Confirm introduction

python
import torch

Installation is complete if there is no error in import Close variously

exit()
source deactivate

For python3 series

Build a virtual environment named pytorch3 (virtual environment name is free)

conda create -n pytorch3 python=3.5.1 -y

Enable virtual environment

source activate pytorch3

Install pytorch

conda install pytorch torchvision -c pytorch

Confirm introduction

python
import torch

Installation is complete if there is no error in import Close variously

exit()
source deactivate

Recommended Posts

PyTorch introduction (virtual environment)
pytorch super introduction
Beginner virtual environment
Introduction to Lightning pytorch
python virtual environment Pipenv
virtual environment in python
PyTorch Super Introduction PyTorch Basics
Virtual environment with Python 3.6
Introduction to PyTorch (1) Automatic differentiation
PyTorch C ++ (LibTorch) environment construction
Build an Anaconda virtual environment
Building a Python virtual environment
[Anaconda] Activate the virtual environment
venv: Python virtual environment management
Switch virtual environment with jupyter
python standard virtual environment venv
Building a Python virtual environment
Virtual Environment Version Control Summary Python
Build python virtual environment with virtualenv
[Personal memo] Python virtual environment command memo
Environment
Create a virtual environment with Python!
Integrated Development Environment (IDE) vs. Virtual environment
[Details (?)] Introduction to pytorch ~ CNN CIFAR10 ~
Building a virtual environment with Python 3
From Ubuntu 20.04 introduction to environment construction
pytorch @ python3.8 environment construction with pipenv
Operation memo of Conda virtual environment
Install Django in a pipenv virtual environment
Python virtual environment and packages on Ubuntu
[5 steps] Apply anaconda virtual environment to VScode
About the virtual environment of python version 3.7
Building a virtual environment using homebrew + pyenv-virtualenv
Let's create a virtual environment for Python
[PyTorch] Introduction to document classification using BERT
Effortlessly vscode + venv virtual environment (Windows) memo
[Mac] Building a virtual environment for Python
[Python] Introduction to CNN with Pytorch MNIST
Creating a python virtual environment on Windows
Create a virtual environment with Python_Mac version
[Introduction to Pytorch] I played with sinGAN ♬
Build a python virtual environment with pyenv
Introduction to docker Create ubuntu environment in ubuntu
I started Node.js in a virtual environment
Add a Python virtual environment to VSCode
Introduction of SoftLayer Command Line Interface environment