Discussion:
I am not able to run Python in Powershell
(too old to reply)
The Cat Gamer
2017-09-01 14:38:29 UTC
Permalink
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
2017-09-01 19:49:48 UTC
Permalink
Post by The Cat Gamer
fter I installed Python I try to open it in Powershell, by typing
python/python.exe.
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)
"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
p***@gmail.com
2018-09-28 17:07:00 UTC
Permalink
Post by The Cat Gamer
fter I installed Python I try to open it in Powershell, by typing
python/python.exe.
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)
Stefan Ram
2018-09-28 17:43:02 UTC
Permalink
Post by The Cat Gamer
python/python.exe.
I /never/ use PowerShell,
but I was able to use a web search engine:

&"python/python.exe"

.
Calvin Spealman
2018-09-29 13:45:38 UTC
Permalink
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?
Post by The Cat Gamer
fter I installed Python I try to open it in Powershell, by typing
python/python.exe.
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,
Post by The Cat Gamer
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)
--
https://mail.python.org/mailman/listinfo/python-list
Loading...