Python virtual environments are a tool used for dependency management and project isolation. They allow Python site packages (third-party libraries) to be installed in an isolated location from the rest of the system.
A virtual environment is created on top of an existing Python installation, known as the virtual environment's "base" Python, and may optionally be isolated from the packages in the base environment, so only those explicitly installed in the virtual environment are available.
Once you have created a virtual environment, you will need to ensure that you have it active when working on your project otherwise it may fail. This is because you can install Python packages in to the environment which may not be available with the base Python.
This is a relatively straightforward thing to achive. Follow these steps to greatness.
python -m venv NameOfYourEnv
Replacing 'NameOfYourEnv' with whatever you would like to call your virtual environment
On Windows
NameOfYourEnv\Scripts\activate
On macOS and Linux
source NameOfYourEnv/bin/activate
deactivate
Probably easier than creating one in the first place, simply delete NameOfYourEnv
rm -rf NameOfYourEnv
Be sure to deactivate before deleting it