"
python -m venv venv
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
- python -m venv venv
~~
- CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
"
This error is shown after installing and adding python to the path. It is simply there and does not let me work and set the environment. The extensions are added too.
Do you have any suggestions on how to fix it?
Thanks in advance,
Hi @LarryInfiniteMX - Couple clarifications. Is this the VS Code terminal? What OS and Python installation are you using? From the terminal are you able to verify the Python install (https://code.visualstudio.com/docs/python/python-tutorial#_verify-the-python-installation) or is it just failing for the virtual environment creation?
Closing since there hasn't been a response. Feel free to reopen if you're still having a problem.
Hi! Same problem here, installed Python 3.8 and the latest version of VS Code, I'm using Windows 10 and Python is recognized both in Command prompt and Powershell but In VS Code I get the above mentioned error...
Hi @MarvelZGB - Thanks for confirming it's working for you at cmd and in PowerShell. Could you also let us know which distribution of the Python interpreter you're using? (Python.org, Anaconda, etc)
Hi @JoshuaPartlow , figured it out, you just type py for starting python in Visual Studio Code in Win 10. I'm using Python.org interpreter (the version downloaded from Python website and not the Anaconda installation if that's what you've asked).
Hi @MarvelZGB - That was what I was asking, thanks for clarifying. I'm glad you got the Python launcher working. I'll take a look at if there's a way to make that usage clearer in the tutorial.
Hi All,installed Python 3.7.4(python.org) and the latest version of VS Code, I'm using Windows 10 and Python is recognized in Command prompt but In VS Code I get the above mentioned error... @JoshuaPartlow @MarvelZGB ......would u like to share how u fixed it
Instead of python cmd in the shell use py
if it says 'python' is not recognized use 'py' instead and vise versa.
Hi , I have this problem too because I download python from python.org and I test it on command prompt and powershell but in visual studio I can't programming.
Hi @ihatemylifeAC - Have you tried walking through the Python tutorial for VS Code, it does a good job of helping with initial setup and getting started.
Hi @JoshuaPartlow is using py instead of python some sort of problem, or error caused due to fault in downloads or what??
Most helpful comment
Instead of python cmd in the shell use py