Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

Thomas Passin list1 at tompassin.net
Thu Jun 8 17:22:22 EDT 2023


On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote:
> On Wed, 7 Jun 2023 10:36:22 -0600, Mats Wichmann <mats at wichmann.us>
> declaimed the following:
> 
> 
>> I'm assuming you checked - say, with Explorer - that pip.exe really is
>> where you think it is?
>> Anyway,  if you ask a Windows shell (cmd) to locate it, and it doesn't,
>> then your PATH is not set up correctly after all.
>>
>> where pip
>>
>> should give you back a path that ends witn ...\Scripts\pip.exe
>>
> 
> 	I'm having a suspicion that recent Windows installers are not including
> a pip.exe...
> 
> -=-=-
> C:\Users\Owner>echo %path%
> C:\Python310\Scripts\;C:\Python310\;C:\Python310\Tools\Scripts;C:\Program
> Files\PuTTY\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
> Files (x86)\Common Files\Acronis\VirtualFile\;C:\Program Files (x86)\Common
> Files\Acronis\VirtualFile64\;C:\Program Files (x86)\Common
> Files\Acronis\FileProtector\;C:\Program Files (x86)\Common
> Files\Acronis\FileProtector64\;C:\Program Files (x86)\Common
> Files\Acronis\SnapAPI\;C:\Program Files\ooRexx;C:\Program
> Files\rexx.org\Regina;C:\Program Files\Microchip\xc8\v2.41\bin;C:\Program
> Files\Microchip\xc8\v2.36\bin;C:\Program
> Files\Microchip\xc16\v2.00\bin;C:\Program
> Files\Microchip\xc32\v4.21\bin;C:\Program Files\Microsoft VS
> Code\bin;C:\Program Files\dotnet\;C:\Program Files\TortoiseHg\;C:\Program
> Files\Calibre2\;C:\Program Files\Microsoft SQL
> Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client
> SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\IVI
> Foundation\VISA\WinNT\Bin\;C:\Users\Owner\AppData\Local\Microsoft\WindowsApps;C:\Program
> Files\JetBrains\PyCharm Community Edition
> 2021.1.2\bin;;C:\Users\Owner\.dotnet\tools
> 
> C:\Users\Owner>where pip.*
> INFO: Could not find files for the given pattern(s).
> 
> C:\Users\Owner>
> -=-=-
> Windows PowerShell
> Copyright (C) Microsoft Corporation. All rights reserved.
> 
> Try the new cross-platform PowerShell https://aka.ms/pscore6
> 
> PS C:\Users\Owner> Get-ChildItem -Path C:\Python310\ -Recurse -Name -Filter
> "pip.*"
> Lib\site-packages\pip
> Lib\site-packages\pipenv\patched\pip
> Lib\site-packages\pipenv\utils\pip.py
> Lib\site-packages\pipenv\utils\__pycache__\pip.cpython-310.pyc
> PS C:\Users\Owner>
> -=-=-
> 
> 	I've just run the installer -- python-3.10.11-amd64.exe -- as admin, in
> "repair" mode! There is NO pip.exe under the Python install directory.

It's in the Scripts directory:

C:\Users\tom\AppData\Local\Programs\Python\Python311\Scripts\pip3.exe

Note that this installation was made for a single user, not "All Users" 
- this is an install-time option.  For an "All Users" location (I 
happened to install 3.9 for "All Users"), it does go into %PROGRAMFILES%:

C:\Program Files\Python39\Scripts\pip.exe

Whether this directory ends up on the PATH depends on a user option 
during installation. That's one among several reasons to invoke pip with 
py -m pip.

It always gets installed, though.




More information about the Python-list mailing list