Skip to content

Commit

Permalink
fix/pip-installation: Fix installation of dependencies by using the P…
Browse files Browse the repository at this point in the history
…ython module of pip
  • Loading branch information
nok committed May 25, 2020
1 parent 07b4729 commit 1e57778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/masonite/commands/InstallCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def handle(self):
except Exception:
self.comment(
"""Pipenv could not install from your Pipfile .. reverting to pip installing requirements.txt""")
call(["pip3", "install", "-r", "requirements.txt"])
call(["python", "-m", "pip", "install", "-r", "requirements.txt"])
elif os.path.isfile('requirements.txt'):
call(["pip3", "install", "-r", "requirements.txt"])
call(["python", "-m", "pip", "install", "-r", "requirements.txt"])
else:
raise OSError(
'Could not find a Pipfile or a requirements.txt file')
Expand Down

0 comments on commit 1e57778

Please sign in to comment.