[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Python added to PATH, cannot be directly accessed, cannot install pip
From:       Eryk Sun <eryksun () gmail ! com>
Date:       2021-09-28 6:55:28
Message-ID: CACL+1atGofaUPVcwnaRR3qwMyzpbG-W83k+h-WoqxQj7vDSAEg () mail ! gmail ! com
[Download RAW message or body]

On 9/27/21, Mats Wichmann <mats@wichmann.us> wrote:
>
> pip, meanwhile, is not in the same directory as the python executable,
> so even "adding python to PATH" doesn't solve the problem of running
> pip.  Invoke it like this instead:

The installer's option to add Python to PATH adds both the
installation directory and the scripts directory. The latter has
"pip.exe", assuming pip was installed.

> py -m pip install foo

If the `pip` command is on PATH, for an installation or active virtual
environment, it's usually fine to use it instead of `py -m pip` or
`python -m pip`. But there's one caveat. The `pip` command can't be
used to upgrade pip itself. For that you have to run the module via
`'py -m pip` or `python -m pip`.
-- 
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic