We support Anaconda (https://www.anaconda.com/download) using Python 3.6. If you want to isolate installed packages from the rest of your Python system, make sure to install Anaconda for the local user only and do not add conda to the path (this is a check-box option during installation). A conda environment will be used to further isolate things.
The following creates a conda environment called imv
:
conda create --name imv
You will need to activate your environment each time you open a new terminal.
MacOS and Ubuntu:
source activate imv
Windows 10:
activate imv
This isolates all pip
or conda
installs from your other environments or from your system-level Python installation.
Ensure the imv
environment is activated, then:
conda install -c conda-forge opencv
pip install gym py-getch
Ubuntu:
conda install pytorch-cpu torchvision -c pytorch
MacOS:
conda install pytorch torchvision -c pytorch
Windows 10:
conda install -c peterjc123 pytorch-cpu
pip install torchvision