{"action":"created","issue":{"url":"https://api.github.com/repos/yyuu/pyenv/issues/411","labels_url":"https://api.github.com/repos/yyuu/pyenv/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/yyuu/pyenv/issues/411/comments","events_url":"https://api.github.com/repos/yyuu/pyenv/issues/411/events","html_url":"https://github.com/yyuu/pyenv/issues/411","id":95696314,"number":411,"title":"\"pip: command not found\" in installs of 2.7.9 and 2.7.10","user":{"login":"jackmaney","id":1554625,"avatar_url":"https://avatars.githubusercontent.com/u/1554625?v=3","gravatar_id":"","url":"https://api.github.com/users/jackmaney","html_url":"https://github.com/jackmaney","followers_url":"https://api.github.com/users/jackmaney/followers","following_url":"https://api.github.com/users/jackmaney/following{/other_user}","gists_url":"https://api.github.com/users/jackmaney/gists{/gist_id}","starred_url":"https://api.github.com/users/jackmaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackmaney/subscriptions","organizations_url":"https://api.github.com/users/jackmaney/orgs","repos_url":"https://api.github.com/users/jackmaney/repos","events_url":"https://api.github.com/users/jackmaney/events{/privacy}","received_events_url":"https://api.github.com/users/jackmaney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-17T16:48:16Z","updated_at":"2015-07-18T05:01:09Z","closed_at":null,"body":"Lately, I've noticed the following issue with 2.7 installs, especially 2.7.9 and 2.7.10 ([both of which should include pip automatically](https://pip.pypa.io/en/latest/installing.html#pip-included-with-python)).\r\n\r\n    $ pyenv install 2.7.10\r\n    Installing Python-2.7.10...\r\n    Installed Python-2.7.10 to /Users/<username>/.pyenv/versions/2.7.10\r\n\r\nOkay, let's switch...\r\n\r\n\r\n    $ pyenv global 2.7.10\r\n    $ python --version\r\n    Python 2.7.10\r\n\r\nCool. So, let's make sure pip is working...\r\n\r\n    $ pip --help\r\n    pyenv: pip: command not found\r\n    \r\n    The `pip' command exists in these Python versions:\r\n     2.6.9\r\n      3.2.6\r\n      3.3.6\r\n      3.4.3\r\n      ...\r\n\r\n...huh. Well, let's install it manually, anyways:\r\n\r\n    $ curl https://bootstrap.pypa.io/get-pip.py | python\r\n      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                     Dload  Upload   Total   Spent    Left  Speed\r\n    100 1380k  100 1380k    0     0  1090k      0  0:00:01  0:00:01 --:--:-- 1614k\r\n    Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages\r\n\r\nOkay, now let's see if pip even exists.\r\n\r\n    $ which pip\r\n    /Users/<username>/.pyenv/shims/pip\r\n\r\nOkay, cool...\r\n\r\n    $ pip --help\r\n    pyenv: pip: command not found\r\n    \r\n    The `pip' command exists in these Python versions:\r\n      2.6.9\r\n      3.2.6\r\n      3.3.6\r\n      3.4.3\r\n\r\nThis exact same issue occurs with 2.7.9, but not any 3.X version that I've installed (recently, 3.4.3 and 3.5.0b2).\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24508989-pip-command-not-found-in-installs-of-2-7-9-and-2-7-10?utm_campaign=plugin&utm_content=tracker%2F282009&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282009&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/yyuu/pyenv/issues/comments/122483878","html_url":"https://github.com/yyuu/pyenv/issues/411#issuecomment-122483878","issue_url":"https://api.github.com/repos/yyuu/pyenv/issues/411","id":122483878,"user":{"login":"yyuu","id":63651,"avatar_url":"https://avatars.githubusercontent.com/u/63651?v=3","gravatar_id":"","url":"https://api.github.com/users/yyuu","html_url":"https://github.com/yyuu","followers_url":"https://api.github.com/users/yyuu/followers","following_url":"https://api.github.com/users/yyuu/following{/other_user}","gists_url":"https://api.github.com/users/yyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/yyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyuu/subscriptions","organizations_url":"https://api.github.com/users/yyuu/orgs","repos_url":"https://api.github.com/users/yyuu/repos","events_url":"https://api.github.com/users/yyuu/events{/privacy}","received_events_url":"https://api.github.com/users/yyuu/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T05:01:09Z","updated_at":"2015-07-18T05:01:09Z","body":"@jackmaney I confirmed the reproduction of the issue with existence of `~/.local/lib/python2.7/site-packages/homebrew.pth` as `import site; site.addsitedir(\"/usr/local/lib/python2.7/site-packages\")`. Now I'm looking for some workaround...."}}