Run Python File in Terminal does not respect "python.pythonPath"
See original GitHub issueEnvironment 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
{
"python.pythonPath": "/usr/bin/python3"
}
and run a file.
Logs
Output from Python
output panel
python <file>
Output from Console window
(Help->Developer Tools menu)
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
VSCode - Run Python File in Terminal and pythonpath
util - and I use 'Run Python File in Terminal' to execute the script it fails with Module not found (proj.util) - because...
Read more >File Path and CWD - Python 3 Notes
So far we have been using the absolute path, which begins from the topmost directory. But if your file reference does not start...
Read more >How to set python path - Net-Informations.Com
Open a command prompt window (press Windows+R, type in cmd, and hit enter). Just type "python" on the command line and see if...
Read more >Understanding the Python Path Environment Variable in Python
To set the python environment variable PYTHONPATH on Mac, follow the given steps: Step 1: Open the Terminal. ... Step 4: Save this...
Read more >How to Fix - bash: python: command not found Error
Make sure the python installed path is added in the PATH variable. You can see in the above output '/usr/bin' and '/bin' paths...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Bingo, I believe that’s where the problem lies. This will be fixed in #592
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.