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

error: pyenv activate #11

Closed
carolyn-idi opened this issue Jan 25, 2014 · 2 comments
Closed

error: pyenv activate #11

carolyn-idi opened this issue Jan 25, 2014 · 2 comments

Comments

@carolyn-idi
Copy link

I've installed pyenv and pyenv-virtualenv. pyenv seems to be working great, and it appears I am able to create a virtualenv, but I can not seem to activate the virtualenv.

test3.3 >> pyenv virtualenvs
  py276 (created from /Users/insomniac/.pyenv/versions/2.7.6)
  py333 (created from /Users/insomniac/.pyenv/versions/3.3.3)
test3.3 >> pyenv activate py333
pyenv: no such command `activate'

How can I activate the virtual env? Also, is there a way to auto-activate and auto-deactivate the virtual environment when I go in and out of the directory?

Thanks,
C.

@yyuu
Copy link
Collaborator

yyuu commented Jan 25, 2014

Perhaps, just restarting your shell will enable the pyenv activate command.

The shell function of pyenv caches the list of some pyenv commands (pyenv-sh-*) in its definition. It will disturb pyenv to invoke these commands without reloading. Just restarting current shell will solve the issue.

@yyuu
Copy link
Collaborator

yyuu commented Jan 25, 2014

I couldn't implement the auto-activate feature because the version in pyenv is determined on the runtime of shim scripts. By some chance, I will be add those feature if it is available, but I have not found the way to do it yet.

@yyuu yyuu changed the title error: pyenv activate error: pyenv activate Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants