-
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
Run Python File in Terminal does not respect "python.pythonPath" #593
Comments
This works for me. How are you running the python file in the terminal? |
You're right, it's displayed in the terminal. I'm running with a shortcut assigned to "Run Python File in Terminal". Weirdly, I've just noticed that if I right click the editor and select the same option, it uses the correct Python version. But using the shortcut, it always uses "python" |
BTW it also uses the incorrect version when e.g. it attempts to install pylint via the popup. I had to re-run the |
Please could you try running the above command from the command palette? |
I got the same result (runs with "python"). I'm working on a workspace with multiple folders. I tried "Open folder..." with only the specific folder I'm working with right now, and then the above works. If I reopen the workspace, it stops working. |
Bingo, I believe that's where the problem lies. This will be fixed in #592 |
Environment data
VS Code version: 1.19.2
Python Extension version: 0.9.1
Python Version: 3.5
OS and version: Ubuntu 16.04 x64
Actual behavior
File is run with
python
Expected behavior
File should be run with
/usr/bin/python3
Steps to reproduce:
Set
and run a file.
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: