Skip to content
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

if python related commands should be changed also when we change python version? #182

Closed
kevin4fly opened this issue Jun 2, 2014 · 2 comments

Comments

@kevin4fly
Copy link

I have installed python 2.7.6 and python 3.4.1 with pyenv. when i change the python version from 2.7.6 to 3.4.1. the python command works fine and the python 3.4.1 interpreter launches. however, when i run pydoc, terminal shows this:

pyenv: pydoc: command not found

The `pydoc' command exists in these Python versions:
  2.7.6

I know there is pydoc3 pointing to pydoc3.4 in ~/.pyenv/versions/3.4.1/bin, i have to run pydoc3 or pydoc3.4 to launch pydoc. if this is the correct behavior? or it can be enhanced?

@yyuu yyuu added the question label Jun 3, 2014
@yyuu
Copy link
Contributor

yyuu commented Jun 3, 2014

It is the expected behaviour with current impl of pyenv, because it will not do nothing for executable filenames other than python and pip.

Creating symlink of pydoc in ~/.pyenv/versions/3.4.1/bin by hand might help. For now, I don't have any better idea to deal with this issue.

@kevin4fly kevin4fly changed the title if python related commands should change also when we change python version? if python related commands should be changed also when we change python version? Jun 3, 2014
@yyuu
Copy link
Contributor

yyuu commented Jun 11, 2014

After 5c91bc9, python-build will create symlink for pydoc if there is pydonX.Y and there is not pydoc. You can use pydoc command for both Python 2/3.

@yyuu yyuu closed this as completed Jun 11, 2014
yyuu added a commit that referenced this issue Oct 19, 2014
Install script of setuptools-6.1/pip-1.5.6 will create those links if needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants