/bin/sh: python: command not found what to do for not getting this error after you downloaded the python in your mac - resolve

I am a mac user and while im trying to run a code in vscode im getting the following error
/bin/sh: python: command not found
even though i am downloaded the latest version of python in my mac.
can i get the answer from anyone who can resolve my issue and make me to run the code with no errors.
im trying to solve the error and im expecting someone can give a solution for that

Related

VS Code not starting on WSL

Yesterday when I tried to open my VS Code then WSL started updating after the update, I started getting errors and after that, I am not able to start VS Code.
Errors
/mnt/c/Users/dell/.vscode/extensions/ms-vscode-remote.remote-wsl-0.72.0/scripts/wslCode.sh: 50: /home/rahulrajput83/.vscode-server-server/bin/d045a5eda657f4d7b676dedbfa7aab8207f8a075/bin/code: not found
What I have tried
I have searched for the error on google and found some solutions here https://github.com/microsoft/vscode-remote-release/issues/6294
I have tried the solutions available on above link but problem is not fixed.
I have used these commands sudo apt update wsl.exe --shutdown
Please help me to solve this error.

Struggling with code runner install for vscode

I installed code runner and tried to run console.log("hello") but I keep getting the following error.
bash: node: command not found
I went into the settings and set up the JavaScript like this:
Still no luck
is there a file I need in my working directory?
Installing nodeJS was required and problem solved. I didn't see it mentioned in the extension instructions.

Getting error using py.test command in terminal with Windows 10

need some help ! - I am using the pytest Framwork for Selenium with Python. I ran the py.test commands from the commd prompt and it ran fine. Just when I tried
py.test -m smoke -v -s
it started giving me the error below:
The system cannot execute the specified program.
Thereafter I am not able to run anything using py.test
It gives the same error.. I have searched on the web but no luck, I am stuck , has someone faced similar issue while working with Pytest? Please help !! Also please refer the attachmententer image description here

Can't run python code through VS Code. Can't open file ptvsd_launcher.py [Errno 22] Invalid Argument

VSCode was working perfectly a few days ago before this started happening. Attempting to run any python code through VSCode (with or without debugging) Results in this error in the terminal
can't open file '"c:/Users/Rastus22/.vscode/extensions/ms-python.python-2019.5.17517/pythonFiles/ptvsd_launcher.py"': [Errno 22] Invalid argument
A little after the error shows I get a message telling me there was a timeout waiting for the debugger. There aren't any errors in the python itself, currently testing with a file that contains only a print statement. My only other extension is the Darkula theme.
I've tried reinstalling the Python extension and resetting the launch.json file as well as my settings.json file. I've also tried copying over a known good copy of launch and settings file from a different machine and had no luck.
I can't really seem to find anyone else online with the same issue either.
Downgrading to the 2019.4 fixed the issue completely. Thanks to Samuel Cooper for this answer.
Steps to downgrade:
Make sure the Python extension is installed.
Hit the "manage" button on the extension.
"Install another version"
Search for the version you want to move to. I downgraded to version 2019.4.12954

VS Code error Enoent: no such directory, lstat'/snap/code'

I got an error when launch VS Code, I tried to to stop every extension to check if error fill gone.. but not. It's Ubuntu machine
Error message
I have the same issue. It concerns users using VSCode with snap on Ubunutu.
VSCode is looking in the wrong directory.
The problem was reported here : github.com/Microsoft/vscode
As mentioned here, the problem may be fixed temporarily by running:
sudo ln -s /snap/vscode /snap/code