The first step on working with Python project is the dependency management: Managing Python dependencies. In this way you can have a reproducible environment that can be be shared with other colleagues or used in automation tools.
Install single package
Using Pipenv
pipenv install <package_name>
Using Conda
conda install <package_name>
Now that we have an environment with the required packages and Python version, we can move to prepare and run the actual code.