Skip to content

Commit

Permalink
Merge pull request #295 from nok/fix/pip-installation
Browse files Browse the repository at this point in the history
fix/pip-installation: Fix installation of dependencies by using the Python module of pip
  • Loading branch information
josephmancuso authored May 25, 2020
2 parents 07b4729 + 1e57778 commit 0dc0906
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 0dc0906

Please sign in to comment.