Exerciese-conda

The objective of this exercise is to walk you through the steps to create a new environment from scratch by using conda in a terminal environment.

  1. Open Anaconda Powershell (for Windows Users) or Terminal (for Mac Users)
  • Windows users: Go to Start Menu, and then click Anaconda Powershell or Anaconda Prompt.
  • Mac users: Go to the Launchpad, start the Anaconda-Navigator, left-click the base environment and open a terminal. (Optional: if you installed Anaconda under an administrator role, you can simply use the Terminal.)
  1. Create a new Python environment named pstc with Python=3.8

conda create --name pstc python=3.8

  1. list out all the environments on your computer to check if the pstc environment has been created successfully.

conda env list

  1. Activate the pstc environment

conda activate pstc

  1. Install the package pandas to the pstc environment

conda install pandas

  1. Install the package notebook from the channel conda-forge to the pstc environment

conda install --channel conda-forge notebook

  1. list out all the packages in the pstc environment to double-check if those 2 packages have been installed successfully.

conda list

  1. Export the pstc environment to an exernal YAML file.

conda env export > pstc.yml