cant use certain commands, leading to more problems

Terry Reedy tjreedy at udel.edu
Wed Apr 28 10:18:23 EDT 2021


On 4/28/2021 10:09 AM, Michael Torrie wrote:
> On 4/28/21 4:00 AM, Rasig Kosonmontri wrote:
>> so i heard that the microsoft store's version of python tends to hide
>> itself. and so i uninstalled it
>> but when i typed in to a powershell it just directs me to the
>> mircrosoft store's page
>> i then disabled it from doing that and install python from python.org
>>   myself
>> but for some weird reason this time it doesnt work at all, 'python' is
>> somehow not recognized as a cmdlet, bash or command. this also happens with
>> gitbash and cmd
> 
> If you installed Python from an installer from python.org, did you tell
> it to put itself into your system PATH? If not, try manually adding the
> bin folder where it installed to to your system path.

Or check the option to install the py launcher and use that.  No need to 
fuss with PATH.

 >py  # run interactive python
 >py filename.py  # run python with that file
 >py -m module  # run module as a command

-- 
Terry Jan Reedy



More information about the Python-list mailing list