cant use certain commands, leading to more problems

2021-04-28 Thread Rasig Kosonmontri
Hi i was using python for a while and one day i decided to try out a module
called "pyinstaller"
i installed it with pip and try to run it as a cmdlet, still didnt work
i then searched online for solutions and people tell me to try "python -m
pyinstaller" to run it directly with python, still didnt work, i tried pip
install it again but all requirements were already satisfied

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

ive tried repairing python but still doesnt work
if you guys have an idea or a solution to this please let me know or help
me through
Thanks
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: cant use certain commands, leading to more problems

2021-04-28 Thread Michael Torrie
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.

As to gitbash, that's an issue with your PATH as well, probably.

> ive tried repairing python but still doesnt work
> if you guys have an idea or a solution to this please let me know or help
> me through

Definitely read through the installation documentation:
https://docs.python.org/3/using/windows.html


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: cant use certain commands, leading to more problems

2021-04-28 Thread Terry Reedy

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

--
https://mail.python.org/mailman/listinfo/python-list