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

Not compatible with pyenv>=1.x #402

Closed
muppetjones opened this issue Aug 13, 2021 · 3 comments
Closed

Not compatible with pyenv>=1.x #402

muppetjones opened this issue Aug 13, 2021 · 3 comments

Comments

@muppetjones
Copy link

Just had a headache of a time figuring out why pyenv activate ... was not actually activating a venv. Completely forgot that I'd updated pyenv a bit ago.

Solution

cd $(pyenv root)
git checkout 1.2.27

This project seems largely abandoned, so mainly leaving this here more as a note.

@PierreRust
Copy link

PierreRust commented Sep 13, 2021

I had the same issue, thanks for your note !

actually adding the following to my config.fish solved it, as mentioned in #401 :

pyenv init --path | source

That's for fish but for zsh and bash the workaround should be similar.
This additional line was not necessary when using pyenv <2 and is not mentioned in the documentation,

@native-api
Copy link
Member

Please see updated and hopefully clearer Pyenv shell setup instructions in https://github.com/pyenv/pyenv#readme
eval "$(pyenv virtualenv-init -)" should run in an rc file after eval "$(pyenv init -)" as before.

@PierreRust
Copy link

Works for me (that's exactly what I already had since stumbling on this), looks good !

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

3 participants