Theoretically you could do that with os.subprocess, but I would encourage you to instead look for a python package that has the functionality you’re looking for. I suspect that, at a minimum, you will run into permissions issues if you try to install a package as the app is running. But, you can certainly give it a try. I would certainly test it locally first, and see if you can get that to happen from inside your streamlit_app.py file.