Linux distributions, Windows 10 with Bash (Anniversary update) or recent Mac OS
-
If Conda is already installed, you can update it with
conda update conda
-
Otherwise, download Miniconda for Linux with python 3.6
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-
Install Conda from the console bash:
bash Miniconda3-latest-Linux-x86_64.sh
-
Create conda environment
conda create -n py36 python=3 jupyter matplotlib pandas
py36 is the environment name -
Activate the virtual environment with
source activate py36
The last command must be run every time you open a new console to activate the Conda environment.
-
Install Pytorch: The following command lines installs the CPU version of Pytorch.
- Linux:
conda install pytorch-cpu torchvision -c pytorch
- Mac OS:
conda install pytorch torchvision -c pytorch
To install the GPU version of Pytorch run the following commands
- Linux:
conda install pytorch torchvision -c pytorch
- Mac OS:
conda install pytorch torchvision -c pytorch
MacOS Binaries dont support CUDA, install from source if CUDA is needed
If you have any other requirement, please follow the instructions from the Pytorch official page here
- Linux:
-
Access a given directory and start jupyter
cd name; jupyter notebook
-
A window should open in your browser. If not, you can copy the URL that appears in the terminal into your browser to access the jupyter environment.
-
If Conda is already installed, you can update it with
conda update conda
Otherwise, download and install Miniconda for Windows with python 3.6 (exe installer)
-
Follow the aforementioned Linux instructions from point 2
-
If Conda is already installed, you can update it with
conda update conda
Otherwise, download and install Miniconda for Mac OS with python 3.6
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
Install Conda from the console bash:
bash Miniconda3-latest-MacOSX-x86_64.sh
-
Follow the aforementioned Linux instructions from point 2
Tutorial on Scientific computing with Numpy
Colab is an open research project from Google allowing you to work with an interface that is very similar to Jupyter, using Google's free computing resources.
-
Q. The command
jupyter notebook
opens a browser, but displays an connexion error to the Jupyter server.A. It is possible that the default port 8888 is unavailable. You can change the port manually with
jupyter notebook --port 8080 --no-browser
-
Q. Once conda installed, the Bash console does not find the conda environment
A. For the Conda installation, you must accept the automatic modification of the .bashrc file that contains the paths. If not done, you need to add
export PATH="~/Miniconda3/bin :$PATH"
in the file called ~/.bashrc.