Commands to use Anaconda to install Python environments and packages
- Open terminal
- Run the following command to install anaconda
conda install conda
- Replace
*
in the following command with the name you choose for this Python environment (e.g.Py27
,Py36
, etc.); replace$
in the following command with the version number of Python environment you want to install (e.g.2.7
,3.6
, etc); run the following command to install Python environment with the desired version and name
conda create -n * python=$
- Replace
*
in the following command with the name of the Python environment that you have installed (e.g.Py27
,Py36
, etc.); run the following command to activate the Python version you want
source activate *
- Run the following command to deactivate the current Python version (NOT uninstall)
source deactivate
conda install -c conda-forge numpy
conda install -c conda-forge pandas
conda install -c conda-forge matplotlib
conda install -c conda-forge scikit-learn
conda install -c conda-forge tensorflow