-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipenv init subcommand #2642
Comments
Sorry about that, I checked (really) but my search query didn't yield these two issues... I guess I'll try harder next time. Thanks! |
@dankeder Pro tip: GitHub search is terrible, use Google instead :p (use something like pipenv github <your keywords>) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When I run
pipenv install <somepackage>
in a directory where the Pipfile doesn't exist yet pipenv automatically creates thePipfile
. While this is convenient, sometimes I accidentally run it in a wrong directory. After that happens I have to manually remove both Pipenv & Pipenv.lock.Describe the solution you'd like
To prevent the mistakes like the one described above, I propose this:
init
:inistall
so that it doesn't create Pipfile automatically; if the command is issued and Pipfile doesn't exist in the current directory or in one of the parent directories, print a message and exit. The message may contain a hint that the user should first runpipenv init
.Also, there are other well-known tools that work in a similar fashion, for example
git
orvagrant
.The text was updated successfully, but these errors were encountered: