-
-
Notifications
You must be signed in to change notification settings - Fork 422
Pyenv deactivate not working #32
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
Comments
Agree definitely not deactivating on Ubuntu 14.04 |
If you're having |
Yes but if you want to deactivate the virtualenv with pyenv deactivate it Currently deactivate isn't turning off.
|
Ok, I'll try to restore |
@madgeekfiend @Flebber I pushed 08b4c94 as a workaround for this issue. Please give it a try and check if the issue has solved. |
This is related to the original issue I posted here #26 I'm afraid that this new behaviour is causing confusion with my colleagues too. I've been asked on many occasions why deactivate is not working (just was asked now again which is why I came here looking to see if a new issue was logged). 😄 Thank you so much and keep up the great work! |
@yyuu I just checked out the commit you mentioned above and deactivate works on Mac OSX 10.9.3 now. Thanks. |
Use `PYENV_DEACTIVATE` to store which virtualenv has been deactivated (fixes #32)
Thank you. Working on Ubuntu 14.04.
|
Hi @yyuu, I'm still having some trouble with this. I'm running master (pyenv/pyenv@22f4218 and e2e69b3) and the virtualenv is deactivated correctly but I am using
Output of
|
The If you just want to do every activation/deactivation manually, I would recommend you to just remove |
@yyuu Ah, I think I understand now. Thanks a lot! |
Seems quite similar issue however I have the following problem while deactivating pyenv #Checking the version
Then I progressed as mentioned above
Trying to deactivate like
I also hashed the following part in .bashrc however seems like it is not working any help?
|
I am using Python 3.4.1 and installed pyenv manually and via homebrew on my Mac OSX running v 10.9.3. After creating a virtualenv and then activating it, which all works. I have a problem with deactivating. When I run 'pyenv deactivate' nothing happens and my shell still shows me as being in the virtualenv.
Any ideas to fix this? Thanks. If I do 'pyenv shell --unset' while in a virtualenv works to 'deactivate'.
Running pyenv deactivate in debug. Hiding my directory name from web scrapers.
++ [pyenv:15] type -p greadlink readlink
++ [pyenv:15] head -1
++ [pyenv:49] pwd
++ [pyenv:63] abs_dirname /Users/HIDDEN/.pyenv/bin/pyenv
+++ [pyenv:28] pwd
++ [pyenv:28] local cwd=/Users/HIDDEN
++ [pyenv:29] local path=/Users/HIDDEN/.pyenv/bin/pyenv
++ [pyenv:31] '[' -n /Users/HIDDEN/.pyenv/bin/pyenv ']'
++ [pyenv:32] cd /Users/HIDDEN/.pyenv/bin
++ [pyenv:33] local name=pyenv
+++ [pyenv:34] resolve_link pyenv
+++ [pyenv:24] /usr/bin/readlink pyenv
++ [pyenv:34] path=../libexec/pyenv
++ [pyenv:31] '[' -n ../libexec/pyenv ']'
++ [pyenv:32] cd ../libexec
++ [pyenv:33] local name=pyenv
+++ [pyenv:34] resolve_link pyenv
+++ [pyenv:24] /usr/bin/readlink pyenv
+++ [pyenv:34] true
++ [pyenv:34] path=
++ [pyenv:31] '[' -n '' ']'
++ [pyenv:37] pwd
++ [pyenv:38] cd /Users/HIDDEN
++ [pyenv:87] command -v pyenv-sh-deactivate
++ [pyenv-sh-deactivate:12] basename bash
The text was updated successfully, but these errors were encountered: