It's most recommended to use a Virtual Environment :
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip3 install pygame some_other_package other_package
Then add this to the top of your python file:
import pygame, some_other_package, other_package
Finally run $ python3 python_file.py.