Simple way to manage version, environments, and packages. https://conda.io/miniconda.html
Download and run the bash installer for your platform, listed below.
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh
At the end of setup, answer "yes" when it asks if you want to add miniconda to your PATH:
Do you wish the installer to prepend the Miniconda3 install location
to PATH in your /home/<user>/.bash_profile ? [yes|no]
[no] >>> yes
Appending source /home/<user>/miniconda3/bin/activate to /home/<user>/.bash_profile
A backup will be made to: /home/<user>/.bash_profile-miniconda3.bak
For this change to become active, you have to open a new terminal.
To re-source your environment variables:
. ~/.bash_profile
Some libraries, like matplotlib
, require the 'framework' version of python.
conda install python.app
Then, run python using pythonw
.
curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
At the end of setup, answer "yes" when it asks if you want to add miniconda to your PATH:
Do you wish the installer to prepend the Miniconda3 install location
to PATH in your /home/<user>/.bashrc ? [yes|no]
[no] >>> yes
Appending source /home/<user>/miniconda3/bin/activate to /home/<user>/.bashrc
A backup will be made to: /home/<user>/.bashrc-miniconda3.bak
For this change to become active, you have to open a new terminal.
To re-source your environment variables:
. ~/.bashrc
conda update conda
conda create -n myenv python
source activate myenv
source deactivate
conda install matplotlib