Looks like `pip.main` is removed https://stackoverflow.com/questions/49839610/attributeerror-module-pip-has-no-attribute-main There is alternative way to call pip: https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program