From eccccdb3fa05f2a053b96a61ea47efd45342f660 Mon Sep 17 00:00:00 2001 From: adrian-vlad <adrian-vlad@github.com> Date: Sun, 27 Sep 2020 01:28:02 +0300 Subject: [PATCH] Requirements are installed for the correct version of python --- pi_mqtt_gpio/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pi_mqtt_gpio/server.py b/pi_mqtt_gpio/server.py index b203974..fa27e27 100644 --- a/pi_mqtt_gpio/server.py +++ b/pi_mqtt_gpio/server.py @@ -320,7 +320,7 @@ def install_missing_requirements(module): from subprocess import check_call, CalledProcessError try: - check_call(["/usr/bin/env", "pip", "install"] + pkgs_required) + check_call([sys.executable, "-m", "pip", "install"] + pkgs_required) except CalledProcessError as err: raise CannotInstallModuleRequirements( "Unable to install packages for module %r (%s): %s" -- GitLab