BYU logo Computer Science

What is an Environment?

A “conda environment” is a space in your computer where certain tools are available. Conda is a package manager, which is similar to an app store. Conda will install and manage updates for code from the internet.

Choose a Terminal

Pycharm terminal

On the lower left hand side of the window, find the icon that displays “Terminal”.

Windows terminal

Use the search bar to open a terminal. It needs to have both “Anaconda” and “Powershell” in its name.

Mac terminal

Quit the Terminal app, if it is already open.

Use Launchpad or Spotlight search to open the Terminal app.

All terminals: create conda envirionment

Copy and paste the following two commands:

conda create -n cs110 matplotlib pytest

This first command creates an environment called cs110 and includes the well-known matplotlib and pytest packages.

conda run -n cs110 python -m pip install -U byu_pytest_utils byubit==0.6.17

This second command runs an installer called pip inside the cs110 environment. Pip is useful for creating your own packages and installing less well-known packages, like byu-pytest-utils and byubit.