• Re: How to fix Python error, The term '.../python.exe' is not recognize

    From Eryk Sun@21:1/5 to LouisAden Capellupo via Python-list on Tue Oct 11 20:15:27 2022
    On 10/11/22, LouisAden Capellupo via Python-list <python-list@python.org> wrote:
    Variables. C:\Users\It'sMeLil'Loui\AppData\Local\Programs\Python\Python310\Scripts\,
    and C:\Users\It'sMeLil'Loui\AppData\Local\Programs\Python\Python310\.

    I suggest that you switch to a user account that doesn't have single
    quotes in the name. Using a name that contains single quotes is asking
    for trouble. In most command-line shells, which includes PowerShell
    (but not CMD), a literal (verbatim) string is contained by single
    quotes. The shell usually consumes the quote character if it's not
    escaped. See the following sections of the PowerShell documentation:

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.2#single-quoted-strings

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.2#including-quote-characters-in-a-string

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Lee Bieber@21:1/5 to All on Wed Oct 12 12:12:18 2022
    On Tue, 11 Oct 2022 16:40:31 -0700, LouisAden Capellupo <louisadencap@yahoo.com> declaimed the following:

        So basically, I get, "The term '...\python.exe' is not recognized as the name of a cmdlet, function, script, file, or operable program... At line: 1 char: 3." It works the first way I showed with Code Runner, but the second or original way doesn't
    work. What if I don't want to use Code Runner? Any help in fixing this problem would be greatly appreciated. Sorry if certain things are unclear as this is my first time using Python.


    What happens if you change the system to use the "command" shell INSTEAD OF PowerShell?

    PowerShell may not honor the same environment variables.


    --
    Wulfraed Dennis Lee Bieber AF6VN
    wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)