-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support pyenv if it is installed in a non-default directory #2142
Comments
Hi @wedeluxe, thanks for taking the time to submit the issue! I am running on Ubuntu 18.04 at the moment, and use pyenv heavily in the development of our extension. When I choose the interpreter I can see all installed versions available via my pyenv setup: Do you have the following in your .bash_profile (or alt for your system):
...as mentioned in the pyenv setup item (3) here? |
@d3r3kk
I can reproduce this behavior:
---> All interpreters installed with pyenv are not listed.
---> All interpreters installed with pyenv are back and listed. Tried that again a couple of minutes ago |
Great, thanks for getting back to me. Since I can see the pyenv versions and I also install my pyenv environment to a non-standard location ( |
Additional note (I forgot to mention before): When the symlink is active/created and the pyenv interpreters are listed, they are listed with the symlink path
and not with the true/actual path
Maybe this is of any help. |
Thanks! Yes that may have something to do with it, I'll have to see. Mine show up in their installed paths, so we definitely have some differences I can investigate. |
This could be an issue of the environment variables being specified in |
Yes, @wedeluxe could you try putting that in your |
I did a lot of testing. What I didMoved the lines
from ResultBut that has no effect on the issue described in the initial posting. Additionally other things get worse. FinallyRegarding these problems, I went back to the previous setup, i.e. moved the lines back into To answer your implicit question:
|
Thanks for going to all that trouble! I appreciate it. I wasn't 100% confident that Ok, I will have to dig in and see what I can come up with on my end. Thanks for helping out! |
Oh, I'm not quite sure if this is a misunderstanding. Bash does not use the skel version of |
@wedeluxe are you running VS Code from the shell or from a shortcut? By suspicion is if you have to tell GNOME to source your config files then if you're launching from a shortcut it isn't using a shell environment that is sourcing your configs either and that's why VS Code isn't seeing |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off. |
Environment data
Actual behavior
Assuming pyenv is installed in a non-default dir.
Python interpreters installed with pyenv are not listed when running the
"Python: Select Interpreter"
command.Expected behavior
Assuming pyenv is installed in a non-default dir.
Python interpreters installed with pyenv are listed when running the
"Python: Select Interpreter"
command.Steps to reproduce:
~/.pyenv
.This includes setting the
PYENV_ROOT
environment variable to the chosen directory.pyenv install 3.6.6
."Python: Select Interpreter"
command.Workaround
Create a symlink in the home directory pointing to the actual pyenv dir.
ln -s /the/actual/path/to/pyenv ~/.pyenv
After doing so, all Python versions installed with pyenv are listed in the select interpreter area.
Proposed Solution
~/.pyenv
.PYENV_ROOT
environment variable.~/.pyenv
as fallback value.The text was updated successfully, but these errors were encountered: