This commit is contained in:
ahmadbilalkhalid 2019-08-30 19:10:00 +05:00
parent 87ce3aa276
commit 2fddc49d70

View file

@ -147,9 +147,7 @@ class PipenvOperation(object):
if package_name:
command = f"pipenv install {package_name}"
else:
with open(os.path.join(path, "requirements.txt"), "w") as f:
subprocess.Popen("pipenv run pip freeze".split(), cwd=path, stdout=f)
command = f"pipenv run pip install -r requirements.txt"
command = f"pipenv install"
try:
output = subprocess.check_output(command.split(), cwd=path)
except subprocess.CalledProcessError as e: