From 0f380b3ece3070611e42837ef979eb82b5c530e8 Mon Sep 17 00:00:00 2001 From: jr7square Date: Thu, 4 Oct 2018 20:40:45 -0400 Subject: [PATCH] Provide a good message for error described in issue #2846 --- pipenv/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipenv/core.py b/pipenv/core.py index 1bfb2e1c08..9e105b99bf 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1675,6 +1675,9 @@ def do_install( # Don't search for requirements.txt files if the user provides one if requirements or package_args or project.pipfile_exists: skip_requirements = True + # Don't attempt to install develop and default packages if Pipfile is missing + if not project.pipfile_exists and not packages and dev: + click.echo("Could not find Pipfile.", err=True) concurrent = not sequential # Ensure that virtualenv is available. ensure_project(