Steps to Follow:
- Go to the Anaconda webpage and download the individual open source distribution.
- One you have downloaded and installed Anaconda, Open a terminal and type in :
conda -V, The corresponding conda version must be in the output. - Conda Cheat Sheet is your new best friend.
- Initialize a new environment variable: It is always best practice to lay down a project in a separate environment:
- See actual environments:
conda env list - Creating environment with python version 3.8:
conda create --name myEnv python=3.8 - Activate the environment:
conda activate myEnv - Install packages one by one with
conda install packageor perrequirements.txtfile:conda install --file requirements.txt(Analogous to thenpm installwith Package.json) - Check installed packages:
conda list
- See actual environments:
Note:
In order to use Jupyter Notebooks using Visual Studio Code, you need to install the package ipykernel and notebook in both base and your environment. After activating the new environment, by finally running python -m ipykernel install --user --name=myEnv, you can attach the kernel to your environment variable and have access to all the packages in that environment.