{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pipenv/issues/1471","repository_url":"https://api.github.com/repos/pypa/pipenv","labels_url":"https://api.github.com/repos/pypa/pipenv/issues/1471/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pipenv/issues/1471/comments","events_url":"https://api.github.com/repos/pypa/pipenv/issues/1471/events","html_url":"https://github.com/pypa/pipenv/issues/1471","id":299461438,"number":1471,"title":"Prompt the user before creating a virtualenv","user":{"login":"sametmax","id":1673950,"avatar_url":"https://avatars2.githubusercontent.com/u/1673950?v=4","gravatar_id":"","url":"https://api.github.com/users/sametmax","html_url":"https://github.com/sametmax","followers_url":"https://api.github.com/users/sametmax/followers","following_url":"https://api.github.com/users/sametmax/following{/other_user}","gists_url":"https://api.github.com/users/sametmax/gists{/gist_id}","starred_url":"https://api.github.com/users/sametmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sametmax/subscriptions","organizations_url":"https://api.github.com/users/sametmax/orgs","repos_url":"https://api.github.com/users/sametmax/repos","events_url":"https://api.github.com/users/sametmax/events{/privacy}","received_events_url":"https://api.github.com/users/sametmax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-22T18:34:52Z","updated_at":"2018-02-23T18:32:48Z","closed_at":"2018-02-23T18:32:48Z","author_association":"NONE","body":"Be sure to check the existing issues, both open and closed.\r\n\r\nIf you are in a directory not associated with a virtualenv, `pipenv install` will create it. While it's a great feature, I noticed during numerous training I gave that it bites the beginners more often than not:\r\n\r\n- they often pipenv install from the wrong directory by mistake\r\n- they will install the wrong python version\r\n\r\nI'm suggesting that if pipenv is run in a directory not associated with a virtualenv, then it should not immediatly proceed. It should pause, and prompt the user with something like:\r\n```\r\nYou are currently in:\r\n/stuff/thing\r\nBut this directory is not associated with a virtualenv yet. What do you want to do:\r\n[1] Create a virtualenv with Python x.w\r\n[2] Create a virtualenv with Python x.x\r\n[3] Create a virtualenv with Python y.y\r\n[4] Create a virtualenv with Python y.x\r\n[5] Abort.\r\n```\r\nThis would have several benefits:\r\n\r\n- Limit creation by mistake in the wrong directory. \r\n- Allow the user to know that there are several Python executables available and that he/she can choose.\r\n\r\nOf course, this prompt should be disabled with an option such as --no-prompt for automation.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pipenv/issues/comments/368098130","html_url":"https://github.com/pypa/pipenv/issues/1471#issuecomment-368098130","issue_url":"https://api.github.com/repos/pypa/pipenv/issues/1471","id":368098130,"user":{"login":"kennethreitz","id":119893,"avatar_url":"https://avatars2.githubusercontent.com/u/119893?v=4","gravatar_id":"","url":"https://api.github.com/users/kennethreitz","html_url":"https://github.com/kennethreitz","followers_url":"https://api.github.com/users/kennethreitz/followers","following_url":"https://api.github.com/users/kennethreitz/following{/other_user}","gists_url":"https://api.github.com/users/kennethreitz/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethreitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethreitz/subscriptions","organizations_url":"https://api.github.com/users/kennethreitz/orgs","repos_url":"https://api.github.com/users/kennethreitz/repos","events_url":"https://api.github.com/users/kennethreitz/events{/privacy}","received_events_url":"https://api.github.com/users/kennethreitz/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T18:32:48Z","updated_at":"2018-02-23T18:32:48Z","author_association":"CONTRIBUTOR","body":"we had an init originally, and it was removed based on user feedback. this is not changing. "}}
{"actor":{"display_login":"kennethreitz"}}