-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
How to enable Python 3 support without compiling Python 3 within Vim? #536
Comments
@wolph There's not really a solution. The only thing we can do is to finally implement davidhalter/jedi#385. With that it would be really easy to have multiple versions working. But without a client/server architecture it's not possible. |
It works quite good for me using Neovim, which supports Python 2 and 3 in parallel better than Vim. What is |
@davidhalter: in that case, is there any way to influence the module search path? If I could simply insert the path before the regular paths it would work as well. |
@wolph You can do that by modifying the |
Ok, I'll give that a try. Thank you so much for the help :) |
About half of the time I develop using Python 2 and the other half of the time I develop using Python 3. But it seems that Jedi is unable to understand that even though
/usr/bin/env python
will return in a Python 3 interpreter within those Python 3 virtualenvs and always goes to Python 2 instead.The result is that when I do a
<leader>g
I go to the Python 2 version instead of the Python 3 version which can be quite different.I've tried forcing Jedi to use Python 3 using this setting:
But that results in:
Since I run Vim through homebrew (as most OS X developers would), I unfortunately can't build both Python 2 and Python 3 support into Vim. The install options for Vim through homebrew:
Is there any other way to fix this?
Thinking about it, even being able to modify the search path for GotoDefinition would probably fix the issue as well but I don't see an option similar to that anywhere in the docs either.
The text was updated successfully, but these errors were encountered: