Go to: https://www.anaconda.com/products/individual/download-success
Download the graphics installation for your computer
to check if you have it installed
conda
conda update -n base -c defaults conda
Video tutorial: https://www.youtube.com/watch?v=EGaw6VXV3GI&t=254s
example code:
to create new virtual environment :
conda create -n py3.8 python=3.8
py37 is the name of this environment, please specify python version
Activate and deactivate
# To activate this environment, use
#
# $ conda activate py3.8
#
# To deactivate an active environment, use
#
# $ conda deactivate
For me I have created py38 for python 3.8 and py2.7 for python2.7
note: make sure you deactivate the environment you are in before entering the new env. If you directly try to enter a new environment when you are already in one your python version will not change.
More codes:
conda info --envs
conda list --explicit
conda deactivate
conda remove --name py27 --all
show you what conda environments you have made
listing all the packages you installed
to deactivate the current environment and return to root environment
if you want to remove an environment named "py2.7"
*note common mistake: when you are in (base) and you try to activate a different conda environment, the python version will not change because you need to exit out of (base). Do conda deactivate one more time to exit out of (base)