-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Should jedi-vim respect the preferred python interpreter of $PATH? #583
Comments
Well, I don't know if sensible is the right word to use here. jedi-vim doesn't do any magic in selecting a Python interpreter at the moment. I have davidhalter/jedi#385 on the roadmap as a long term solution for this, but it might take a while... Is this answer good enough? |
Yes, this answer is good enough. Thanks for your explanation. I hope that you find the time to make it possible to choose the python interpreter. There is another plugin which tries to solve it for conda envs https://github.com/cjrh/vim-conda. |
I've found that I can get jedi-vim to work with my python 2.7 conda environment. Here's what I had to do: (2) Make sure "vi" -> "vim". (I use "vi" in the command line. If you use "vim", you should be good. I did this by adding this line to my .bash_profile. (3) The final piece is to add the following line to my .vimrc file I hope this helps someone. I spent all day troubleshooting but fortunately, I learned a lot in the process. |
@djchou Thanks for your comment. It is always good when people share their solutions. Also keep in mind not all people respond to solutions they found and actually helped them. |
I am on OSX 10.10.5 using MacVim. I have installed miniconda 2.3.0 (py27, numpy, pip installed jedi).
In my shell I have adjusted
$PATH
in ~/.profile, so that the default interpreter is the miniconda versionI have adjusted in my vimrc also the PATH variable
NOTE
:!echo $PATH
does not have the same order as:echo $PATH
. Does anyone know why the order is changed?Would it be sensible that jedi-vim completes according to the default python interpreter of $PATH, here the conda root environment (
$ conda env list
)?The text was updated successfully, but these errors were encountered: