@leocov wrote:
Just create a python virtual environment. There is lots of info on python virtualenv's online but the easiest way is to let PyCharm create and manage it. The entry point for your tool, a batch or shell script, can call your tools .py file with this virtual environment's python executable.