Skip to content

Commit

Permalink
Run pip3 when installing in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed May 22, 2020
1 parent c8130df commit 843d022
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/wpt/virtualenv.py
Expand Up @@ -55,7 +55,11 @@ def bin_path(self):

@property
def pip_path(self):
path = find_executable("pip", self.bin_path)
if sys.version.version_info.major >= 3:
pip_executable = "pip3"
else:
pip_executable = "pip"
path = find_executable("pip3", self.bin_path)
if path is None:
raise ValueError("pip not found")
return path
Expand Down

0 comments on commit 843d022

Please sign in to comment.