-
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
Wrong python binary is used #3229
Comments
What you're after is #1765 . Basically this is because we don't control your |
I don't understand why the issue is related to |
That I don't know as we don't have anything to do with the terminal and its |
Good point. I verified and the same issue arises with I understand that the terminal is not of your concern, but the same issue applies for linting and executing python files. They all run with the wrong python interpreter. This is my main problem, because packages that I installed on |
Unfortunately we can't avoid it because something has to execute the commands on our behalf. Your best option is to either figure out why your system is doing this, try updating VS Code (1.29 came out the other day), or specify the full paths to things like your linters. |
E.g. you should be specifying the full path to the interpreter you want in your |
I found the real problem: it is related to the flatpak packaging. It is explained in this issue in the flathub repo. |
Environment data
Actual behavior
Python files are execute with the wrong python3 binary. Therefore, installed packages with pip cannot be found.
Python interpreter has been set to /usr/bin/python3, but it does not seem to use that binary. The versions are different as can be seen in this screenshot:
Expected behavior
Python versions in vscode terminal and system shell should be the same.
Steps to reproduce
No idea if this can be reproduced on other machines.
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: