From e8231dc756aa85ba019a23fce035032c56e38c2a 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 59b9a29c..e1243d79 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1775,6 +1775,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(