Vscode-code-runner: Code Runner invoke wrong python path

Created on 20 Aug 2018  路  2Comments  路  Source: formulahendry/vscode-code-runner

When I use code runner to run my python code in Windows,I found it invoke the Linux command "/usr/bin/env python".it makes me can't run code normally.
There is the error message:

G:\Python Learning>/usr/bin/env python3   "g:\Python Learning\tempCodeRunnerFile.py"
The system could not find the specified path.

I already try to change settings.json,but it doesn't work.So how can I solve this problem?

question

Most helpful comment

It seems to use Shebang. You could update the config to ignore it: "code-runner.respectShebang": false

All 2 comments

It seems to use Shebang. You could update the config to ignore it: "code-runner.respectShebang": false

@formulahendry, It works, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

N2ITN picture N2ITN  路  5Comments

emadb picture emadb  路  5Comments

ElektroStudios picture ElektroStudios  路  4Comments

nmchgx picture nmchgx  路  3Comments

Kelo007 picture Kelo007  路  3Comments