Skip to content

Commit 94abb3f

Browse files
author
Kareem Zidane
authored
Merge pull request #203 from cs50/sys_exec
use sys.executable instead of python3 to pip install
2 parents 0b04e66 + 6239dda commit 94abb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check50/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def install_dependencies(dependencies, verbose=False):
119119
for dependency in dependencies:
120120
f.write(f"{dependency}\n")
121121

122-
pip = ["python3", "-m", "pip", "install", "-r", req_file]
122+
pip = [sys.executable or "python3", "-m", "pip", "install", "-r", req_file]
123123
# Unless we are in a virtualenv, we need --user
124124
if sys.base_prefix == sys.prefix and not hasattr(sys, "real_prefix"):
125125
pip.append("--user")

0 commit comments

Comments
 (0)