Using conda environments the right way
Instructions on setting up and using conda environment the right way on Windows.
- install
anaconda.install in
usermode and not inadminmode. - start the
Anaconda Prompt (anaconda3)using start menu.this should automatically activate the
baseenvironment. - create a
condaenvironment named (for example)data-science-env.conda create --name data-science-env python=3.8 - activate the
condaenvironment.conda activate data-science-env - install any required
packageusingcondaorpip.pip install scikit-learnorconda install scikit-learn - create a notebook kernel connected with the conda environment just created.
python -m ipykernel install --user --name data-science-env --display-name data-science-env-kernel

- use the
baseenvironment to startjupyter-notebookorjupyter-lab.You should find a kernel named
data-science-env-kernel.
