-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
pyenv-virtualenv initialisation failing. #36
Comments
I figured it out. The issue is that I had the initialisation set in |
Not completely. Now I can create a virtualenv and list it. But I cannot activate one using pyenv. When activating, I get: Failed to deactivate virtualenv.
Perhaps pyenv-virtualenv has not been loaded into your shell properly.
Please restart current shell and try again. Any ideas how to fix/debug? I removed all instances of virtualenv that I had installed manually, I re-installed this package using brew. The output of I still have a shell that somehow still works (declare -f shows virtualenvwrapper there which is what I had before). But the newer shells I started up and did this clean up and re-installation with don't work. The way I'm working now using that old shell but I need to be able to get it working from a fresh new shell. |
Have same here. Why did you close issue? Found a workaround? |
@silvansky Yes. How did you install pyenv and pyenv-virtualenv? Also paste anything you've added to your bash_profile related to the, here. |
I used the instructions from README, installed via brew and added |
You did the same mistake that I did. You also need |
Wow! I wish this info was in README... Thanks a lot! |
@nayefc Thanks so much for that comment! I'd been editing and removed |
Thanks @nayefc This bug take me 30m to solve |
This fixes issue: pyenv#36
My PR adds @nayefc's tip to README. |
I am getting the same error when I am trying to activate in fish shell, but working fine in bash. Also, when I am trying to activate using direct command activate.fish, I am getting this error -
How can I make it working in fish shell |
Same error as @ankitjain87 here. |
@ankitjain87 and @Githeo If you haven't already given up I was able to get fish working by adding
If you installed pyenv-virtualenv using Homebrew. To my fish config. |
Thanks @bradleyhurley, it works! |
I opened a PR - #280 |
I'm still getting this issue. Any fix / work-around? |
I was having trouble activating virtual environments due to same error mentioned in the original post.
|
@imedmar -- THANK YOU!! |
@nayefc Thank you!!! |
When running
$ eval "$(pyenv virtualenv-init -)"
, I always get this error message:For some reason, I can still use it on the same shell I installed it in, but not any other shell. How do I load up pyenv-virtualenv properly? Note: I Installed it using Homebrew.
I just realised I have issues with my virtualenv:
Which one is the correct one and why do I have two?
The text was updated successfully, but these errors were encountered: