Activate your environment in your code code example
Example 1: how to make a virtual environment in python
py -m venv env
Example 2: create virtual environment code
python3 -m venv venv
py -m venv env
python3 -m venv venv