Skip to content

Commit ac8ebae

Browse files
committed
Use mbed CLI's python to call pip
1 parent 14e0e84 commit ac8ebae

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
@@ -1449,7 +1449,7 @@ def check_requirements(self, show_warning=False):
14491449
if missing and install_requirements:
14501450
try:
14511451
action("Auto-installing missing Python modules...")
1452-
pquery(['pip', 'install', '-q', '-r', os.path.join(req_path, req_file)])
1452+
pquery([python_cmd, '-m', 'pip', 'install', '-q', '-r', os.path.join(req_path, req_file)])
14531453
missing = []
14541454
except ProcessException:
14551455
warning("Unable to auto-install required Python modules.")

0 commit comments

Comments
 (0)