Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I am not able to run Python in Powershell

2,283 views
Skip to first unread message

The Cat Gamer

unread,
Sep 1, 2017, 2:37:41 PM9/1/17
to
fter I installed Python I try to open it in Powershell, by typing
python/python.exe.
It gives me an error:
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
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This happens with version 3 and version 2. The newest versions and the
older versions none of them makes me able to open Python in Windows
Powershell. Are you guys aware of a fix?

(I already tried the environment fix and that didnt work as well)

MRAB

unread,
Sep 1, 2017, 3:50:18 PM9/1/17
to
"python" isn't on the path list, but the Python launcher "py" should be.

If you want to start Python 3.6 specifically (assuming it's installed):

py -3.6

If you want to start the default python:

py

praveenja...@gmail.com

unread,
Sep 28, 2018, 1:07:15 PM9/28/18
to

Calvin Spealman

unread,
Sep 29, 2018, 9:46:09 AM9/29/18
to
Did you actually confirm the PATH variable contains the right path?

echo $env:Path

And look for a path entry that mentions Python. Then, make sure you can
actually find python.exe in that location.

As long as you keep the PATH option checked with the Python installer it
absolutely should work from PowerShell. What version of Python did you
install? Have you also tried to invoke Python from the Command Prompt to
determine if the issue only affects PowerShell or not?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
0 new messages