You can export Python environment installed packages, so that you can installed it afterwards in a new environment, for example when using virtual environments.
pip freeze > requirements.txt
And then in order to install the packages in the new environment use the following:
pip install -r requirements.txt