Skip to content

Commit c8e989f

Browse files
authored
Merge pull request #613 from screamerbg/f/exec-python-env
Use python that executes mbed CLI to call pip
2 parents d29b936 + ac8ebae commit c8e989f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ def check_requirements(self, show_warning=False):
14511451
if missing and install_requirements:
14521452
try:
14531453
action("Auto-installing missing Python modules...")
1454-
pquery(['pip', 'install', '-q', '-r', os.path.join(req_path, req_file)])
1454+
pquery([python_cmd, '-m', 'pip', 'install', '-q', '-r', os.path.join(req_path, req_file)])
14551455
missing = []
14561456
except ProcessException:
14571457
warning("Unable to auto-install required Python modules.")

0 commit comments

Comments
 (0)