Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

HELP!!!! I'm being held prisoner in /usr/games/lib!


devel / comp.lang.python / Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

SubjectAuthor
* Re: Assistance Request - Issue with Installing 'pip' despite PythonMats Wichmann
`* Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 InstallDennis Lee Bieber
 +* Re: Assistance Request - Issue with Installing 'pip' despite PythonThomas Passin
 |`* Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 InstallDennis Lee Bieber
 | +- Re: Assistance Request - Issue with Installing 'pip' despite PythonThomas Passin
 | +* Re: Assistance Request - Issue with Installing 'pip' despite PythonEryk Sun
 | |`- Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 InstallDennis Lee Bieber
 | `- Re: Assistance Request - Issue with Installing 'pip' despite PythonThomas Passin
 +- Re: Assistance Request - Issue with Installing 'pip' despite PythonEryk Sun
 +- Re: Assistance Request - Issue with Installing 'pip' despite PythonThomas Passin
 +- Re: Assistance Request - Issue with Installing 'pip' despite PythonGisle Vanem
 `- Re: Assistance Request - Issue with Installing 'pip' despite PythonThomas Passin

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

<mailman.62.1686155851.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23520&group=comp.lang.python#23520

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: mat...@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Wed, 7 Jun 2023 10:36:22 -0600
Lines: 45
Message-ID: <mailman.62.1686155851.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 3XHCR/Ognt0Z45xxq/XdvQ64gwXm3i1Y0fO32KtSTZGQ==
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pobox.com header.i=@pobox.com header.b=v+eQVn9Z;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'despite':
0.05; 'error:': 0.05; 'issue.': 0.05; 'variable': 0.05;
'windows,': 0.05; 'anyway,': 0.09; 'approaches': 0.09; 'attempts':
0.09; 'fails': 0.09; 'module:': 0.09; 'prompt,': 0.09;
'subject:Python': 0.12; 'import': 0.15; 'problem.': 0.15; '(*)':
0.16; '3.10': 0.16; 'assuming': 0.16; 'assures': 0.16; 'batch':
0.16; 'directory.': 0.16; 'file."': 0.16; 'locate': 0.16;
'received:64.147': 0.16; 'repair': 0.16; 'subject:3.10': 0.16;
'subject:Installation': 0.16; 'subject:Issue': 0.16;
'subject:pip': 0.16; 'wrote:': 0.16; 'python': 0.16; 'developer':
0.16; 'to:addr:python-list': 0.20; 'issue': 0.21; 'install': 0.23;
'command': 0.23; 'installed': 0.23; 'tried': 0.26; 'suggestions':
0.28; 'wrong': 0.28; 'environment': 0.29; 'it,': 0.29; 'header
:User-Agent:1': 0.30; 'module': 0.31; 'program,': 0.31; 'think':
0.32; 'performed': 0.32; 'python-list': 0.32; 'resolve': 0.32;
'said,': 0.32; 'but': 0.32; "i'm": 0.33; 'path': 0.33; 'windows':
0.34; 'header:In-Reply-To:1': 0.34; 'running': 0.34; 'computer.':
0.35; 'following': 0.35; 'really': 0.37; "it's": 0.37;
'received:192.168': 0.37; 'subject:Request': 0.39; 'use': 0.39;
'want': 0.40; 'should': 0.40; 'numerous': 0.60; 'today': 0.61;
'dear': 0.62; 'point.': 0.62; 'come': 0.62; 'internal': 0.63;
'email': 0.63; 'verified': 0.64; 'your': 0.64; 'back': 0.67;
'technical': 0.67; 'received:64': 0.67; 'operations': 0.68;
'receive': 0.71; 'reaching': 0.71; 'recognized': 0.75; 'finds':
0.76; 'seek': 0.81; 'explorer': 0.84; 'say,': 0.84; 'standalone':
0.84; 'subject: \n ': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=r1Rbjd8p3wkE
2d3m+oKmQLivn/LI5qHTw/qKGloyYog=; b=v+eQVn9ZcyRQ3Ppw0fk5c2e8G6Gm
9IWk2qliT8UQxoa57Gmva4fw3BLaEuIjiZ1Mn/lnqpU1rto+ttvmjM0zXLsW6I32
ioqYIk/Yym1rnp8of0zCaswiivimeKxmRNoSkX3NOTztNnvaE6EOrrjYngUjmXQ7
qDF29M+IPdPESrs=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=r1Rbjd8p3wkE2d3m+oKmQLivn/LI5qHTw/qKGloyYog=;
b=mPSy5mPswF45PppBIq0xXEOwzIRqe4Rua2RMYY0+cAm5SwmkfM6Xu3vUosLyX3Szrq0k3FGxi6Ggvz2fQMcbeFDRzKkDF1b/GNqJZ3ZIbAJpAg+Wim0+BpTyh2xoy+soJPr0Aznq1OEWkyLkVRMzuIfqZ+tLn37MtuwNs7ibEYE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Content-Language: en-US
In-Reply-To: <14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
X-Pobox-Relay-ID: 70FC2946-0551-11EE-96AD-C65BE52EC81B-81526775!pb-smtp1.pobox.com
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
 by: Mats Wichmann - Wed, 7 Jun 2023 16:36 UTC

On 6/7/23 10:08, MRAB via Python-list wrote:
> On 2023-06-07 15:54, Florian Guilbault via Python-list wrote:
>> Dear Python Technical Team,
>>
>> I hope this email finds you well. I am reaching out to you today to seek
>> assistance with an issue I am facing regarding the installation of 'pip'
>> despite my numerous attempts to resolve the problem.
>>
>> Recently, I performed installation, uninstallation, and even repair
>> operations on Python 3.10 on my computer. However, I have noticed that
>> 'pip' has never been installed successfully. When I check via the command
>> prompt, I receive the following error: "'pip' is not recognized as an
>> internal or external command, operable program, or batch file."
>>
>> I have tried several approaches to resolve this issue. I have verified
>> that
>> the PATH environment variable is correctly configured to include the path
>> to the Python Scripts directory.

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

That said, the suggestions already given are on point. Running pip as a
module (rather than as a standalone command) assures that it's
associated with the Python you want it associated with. In today's
world, a lot of developer systems end up with multiple Python
installations (*), and you don't want to use a pip that is bound to the
wrong one, or the next email will be "I installed foo module but my
Python fails to import it".

(*) You can have different Python versions for compat checking, you can
have project-specific virtualenvs, you can have Pythons that come
bundled with a subsystem like Conda, etc.

> On Windows, it's recommended to use the Python Launcher and the pip module:
>
> py -m pip install whatever
>

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

<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23540&group=comp.lang.python#23540

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 08 Jun 2023 19:14:34 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation
Date: Thu, 08 Jun 2023 15:14:34 -0400
Organization: IISS Elusive Unicorn
Message-ID: <t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com> <14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com> <65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us> <mailman.62.1686155851.23016.python-list@python.org>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 59
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-KoarecHJUttBy0vLVNPQPcxo92csbF2/wGi3lU+mNn+rd2mEmfs0po8QeFGHVFtBwhANDrgfZ44+4Vu!BSJw22pN/0cw12Ts56tzU6jYYf2J74gXdYReNjIe5GC8nLBVVsj+MJhg7x55vbSsF+g+R7JR
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Lee Bieber - Thu, 8 Jun 2023 19:14 UTC

On Wed, 7 Jun 2023 10:36:22 -0600, Mats Wichmann <mats@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.

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

<mailman.71.1686260433.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23543&group=comp.lang.python#23543

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Thu, 8 Jun 2023 17:22:22 -0400
Lines: 78
Message-ID: <mailman.71.1686260433.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de Ebz3MN1V5r+r6XdphagOTQl6gHezCrj5K2YRZXdzunHg==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=Fk0BVY1p;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.009
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'pip': 0.04; '2023': 0.07;
'happened': 0.07; 'anyway,': 0.09; 'installer': 0.09; 'pip.':
0.09; 'though.': 0.09; 'subject:Python': 0.12; '3.9': 0.16;
'assuming': 0.16; 'directory.': 0.16; 'invoke': 0.16; 'locate':
0.16; 'mats': 0.16; 'option.': 0.16; 'received:10.0.0': 0.16;
'received:64.90': 0.16; 'received:64.90.62': 0.16;
'received:64.90.62.162': 0.16; 'received:dreamhost.com': 0.16;
'subject:3.10': 0.16; 'subject:Installation': 0.16;
'subject:Issue': 0.16; 'subject:pip': 0.16; 'wichmann': 0.16;
'wrote:': 0.16; 'python': 0.16; 'pm,': 0.19; 'to:addr:python-
list': 0.20; 'option': 0.20; "i've": 0.22; 'install': 0.23; 'run':
0.23; 'depends': 0.25; 'jun': 0.26; 'it,': 0.29; 'header:User-
Agent:1': 0.30; 'community': 0.31; 'think': 0.32; 'python-list':
0.32; 'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; "i'm": 0.33; 'there':
0.33; 'path': 0.33; 'windows': 0.34; 'header:In-Reply-To:1': 0.34;
'files': 0.36; 'really': 0.37; "it's": 0.37; 'directory': 0.37;
'could': 0.38; 'single': 0.39; 'subject:Request': 0.39; 'wed,':
0.39; 'try': 0.40; 'should': 0.40; 'including': 0.60; 'your':
0.64; 'among': 0.65; 'edition': 0.67; 'back': 0.67;
'header:Received:6': 0.67; 'received:64': 0.67; 'during': 0.69;
'following:': 0.69; 'skip:f 30': 0.71; 'skip:c 70': 0.75; 'skip:f
20': 0.75; 'rights': 0.76; 'skip:l 60': 0.76; '(c)': 0.81;
'reserved.': 0.81; 'reasons': 0.84; 'copyright': 0.84; 'explorer':
0.84; 'say,': 0.84; 'subject: \n ': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1686259343; a=rsa-sha256;
cv=none;
b=y4hiEl+NGLbN4ol6zthCRPE6ERdFZBvV0XNp7Qdy7Q+v5BZXTSEgulFFQLVczCiV20vy2w
VND+SL6C3wHB4IZn/9Qa4hT+Plg/xW0Xgj5Srt61JwRF0rjxUvnDg2r2P8Y9FBCTMJAweL
2drqXe+OGbu0Jn+wGiSHrNpG4SZeJ7tF7p5s5imL+Q5edtJKBnM6v33xcE6IxbndXcGLxN
M8ZMDUph63qdUjqhJDzUsy85Q78+GFpO2YzZJxqGrYnI6WfRX+hWOfkznTSR0d9Kv3+YcL
/KktZvQtQ/VXMwdI+WlvS9/i0TeBl8fBDltgnuTldVb9j7aPJwuYY7zPRyaRdA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1686259343;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=J0nSFNn/CFBxySKb+3ThUCTRJuMZfkGEbI+ax4JelUc=;
b=kinlxar15wOmmPOK88IbX6W03muhT3d45mU7wigX/3joNcUApz6PJZCtQJ2+93uEPSNUQJ
ahGb8k+14KSPdsp6keQd92kItawD7fnRDZi6LXPZO6kp10O1s8iKzJbC/2dMlbtGG08IC1
BnhOKIz9GVOKomD8LKRV6XdWoqPD0OJfIcahguulLGpwc26GfPfkTTz0t++Uf7TCL6axVR
IL2q0TB2BZ8B5B/XPbU4L/r9j/Y3izyU5W6S0QdMwopaPeEi4nJASm9Wxc61HCWFz4AAia
F5hArIaEb1tw88h3jgahO0IzmS13jb7QNPbFGrz8o8stbYYwJdX5FPjyNNDCZg==
ARC-Authentication-Results: i=1; rspamd-fcb9f4dcf-vl8zx;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Drop-Suffer: 1bed2baa1deb1e0a_1686259344023_195634888
X-MC-Loop-Signature: 1686259344023:2603186329
X-MC-Ingress-Time: 1686259344023
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1686259343;
bh=J0nSFNn/CFBxySKb+3ThUCTRJuMZfkGEbI+ax4JelUc=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=Fk0BVY1pWV7nmA3td3Q/NsJDukQA6VZopDooTB4pTTMv4xTqV0iSobyImxUEmKktT
i7e0Ay9wdjYLOu0GrZ04ozc7u6eO0ipBCLiLy0B2ltEPzJoN1vccaGddbmpABfZ4C9
R5IGjoklfEOyuyez13rRurEmcfGy8OVQ13nep5N7RiVkZwpR+bzEFB1WYXNzNe1t7B
1Vq+VghAgY5qleoEYCF31IYe4g06aXwUbZKOi97Jc1lVW4JVcBLJ2moxylkm217D0u
AfCQsGOQWRO+8ASe54ko2MC85TekFXVi/5vKKUNSOXU0Ud/mvJ1E1IxsTKGqac+f+G
bEwbv0QIFBJAQ==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.2
Content-Language: en-US
In-Reply-To: <t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
 by: Thomas Passin - Thu, 8 Jun 2023 21:22 UTC

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@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.

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

<mailman.72.1686263001.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23544&group=comp.lang.python#23544

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: eryk...@gmail.com (Eryk Sun)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Thu, 8 Jun 2023 17:23:16 -0500
Lines: 17
Message-ID: <mailman.72.1686263001.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<CACL+1asS_pUqGpHY2zuP+5XU8RgB+VGUm3=CQ3BJqkmLXdnOQw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de ImdpaJCUmu9fPUhfByiLtQsXHIv+A2F41K1bsNIY/0NA==
Return-Path: <eryksun@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=n7FItPmz;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'users,':
0.07; 'cc:addr:python-list': 0.09; 'resolved': 0.09; 'though.':
0.09; 'subject:Python': 0.12; 'cc:no real name:2**0': 0.14;
'problem.': 0.15; 'command:': 0.16; 'cpython': 0.16; 'executed':
0.16; 'installed.': 0.16; 'interpreter': 0.16; 'subject:3.10':
0.16; 'subject:Installation': 0.16; 'subject:Issue': 0.16;
'subject:pip': 0.16; 'times,': 0.16; 'verbose': 0.16; 'wrote:':
0.16; 'problem': 0.16; 'python': 0.16; 'cc:addr:python.org': 0.20;
'option': 0.20; "i've": 0.22; 'install': 0.23; 'command': 0.23;
'installed': 0.23; 'skip:- 10': 0.25; 'cc:2**0': 0.25; 'output':
0.28; 'python-list': 0.32; 'message-id:@mail.gmail.com': 0.32;
'but': 0.32; 'header:In-Reply-To:1': 0.34; 'received:google.com':
0.34; 'following': 0.35; 'from:addr:gmail.com': 0.35; 'possibly':
0.36; 'couple': 0.37; "it's": 0.37; 'subject:Request': 0.39;
'should': 0.40; 'come': 0.62; 'during': 0.69; 'further': 0.69;
'latter': 0.69; 'manually': 0.69; 'implemented': 0.76; 'enabled.':
0.84; 'executing': 0.84; 'subject: \n ': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20221208; t=1686262997; x=1688854997;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=FINRi3N6nFQ2Ip743zoUmps9o7/qVptiNlSOy1thVoo=;
b=n7FItPmzyc8GKSRpmHHwvgFVvLIUV0ErlJCkPrF1CffOGiXAs23VTqfwiNsoIVo6AL
Hr6P7BnF3Vn0Cl0421i0B3T+dznjlNQU+0sGCCFXAmNykhcaWzkEdfhiVq0ceTXs8zsD
GQkVc2/unCNr4QTPJDl1YyeFK4dIVTzgIC39Ze8cVKr/JmUtxNFeXzSZG4u/dYJEDcnn
fV2qdn50CKw4TV+uyiLuY8cdgxJTuQO3lPhLO6ITPR1JYarEPw+Locu39jIbyzNXr8v5
jy8jrRd8xrckIIA31a3UwVXiddr5B2EVrUjQsjOFMtVzcTJGULkUFGJIDcKAiuXRn1IR
yrTg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1686262997; x=1688854997;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=FINRi3N6nFQ2Ip743zoUmps9o7/qVptiNlSOy1thVoo=;
b=WkaiOTtNgZQTriEi0m5za4zwN3pihu9hpq4/tMBmsw4FSJb9Lr7pnovshPy8PPFcpj
ELq6MXR0D81clbRLF+m8Zk4cwYITwiNqz6cGNF3VLLYAR4aGTz9mlOj9HqcTe9+0HbSz
Og9MOcGPdaKbWLbN/rUko1v08oKIgMMrnLKENDQwD0DrDy7mQCyC9wCvwMys2uJHNUhr
k0+e6NepT0wVjodDzqRenHZsHHUBroHGspqUsg0l+COuhXKWoyeaPFLWYYD2CoX5rfKs
HFpbkhd16muBxerp+SuLScxw7SJ4vv0jgyk4cjTQSqJ9PtE9z6QkNFFHKT8jeYLxwJSx
JT+g==
X-Gm-Message-State: AC+VfDwlYn8fOshHjObfFrtsq3oJ3Of4grf61n6CKbtTyVdfMG3L+RYC
P/cCIPUQgyZhbCh7cW/p0rmoFPxheTMh5vF56Ntm4HTI
X-Google-Smtp-Source: ACHHUZ6iNbuA89XDk0cdq6N1sb0Gh18RlEW3FbgwAEaHNXdP70h0fdqhh0scKBni6q7/Xu4lv4HjLcA7mDMUsMj+PMA=
X-Received: by 2002:a4a:d6d5:0:b0:54f:4e01:7fc9 with SMTP id
j21-20020a4ad6d5000000b0054f4e017fc9mr583853oot.3.1686262997454; Thu, 08 Jun
2023 15:23:17 -0700 (PDT)
In-Reply-To: <8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CACL+1asS_pUqGpHY2zuP+5XU8RgB+VGUm3=CQ3BJqkmLXdnOQw@mail.gmail.com>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
 by: Eryk Sun - Thu, 8 Jun 2023 22:23 UTC

On 6/8/23, Thomas Passin via Python-list <python-list@python.org> wrote:
>
> It always gets installed, though.

By default, the option to install pip is enabled. It's implemented by
executing ensurepip after the interpreter is installed. However,
ensurepip may silently fail during installation. As a CPython triager
I've come across this problem a couple of times, but it should be
rare. It can possibly be resolved by manually executing ensurepip via
the following command:

py [-3[.X]] -m ensurepip --default-pip --upgrade --verbose

If Python is installed for all users, the latter should be executed
from a shell that has administrator access. Even if this command also
fails, the verbose output in the console may be helpful to further
diagnose the problem.

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

<mailman.73.1686264734.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23545&group=comp.lang.python#23545

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Thu, 8 Jun 2023 18:52:00 -0400
Lines: 29
Message-ID: <mailman.73.1686264734.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<CACL+1asS_pUqGpHY2zuP+5XU8RgB+VGUm3=CQ3BJqkmLXdnOQw@mail.gmail.com>
<ac6b9f75-d7e1-f6e4-c714-705cf9c128e3@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 4OZVSI0WKXzBpW6hWrfQSgEhJ+xRQ8eHiwvFHpQMJ+QA==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=sNHdSY7e;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'users,':
0.07; 'wrong.': 0.07; 'installer': 0.09; 'resolved': 0.09;
'though.': 0.09; 'subject:Python': 0.12; 'problem.': 0.15;
'command:': 0.16; 'cpython': 0.16; 'eryk': 0.16; 'executed': 0.16;
'installed.': 0.16; 'interpreter': 0.16; 'own?': 0.16; 'pip,':
0.16; 'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'smoothly.': 0.16; 'subject:3.10':
0.16; 'subject:Installation': 0.16; 'subject:Issue': 0.16;
'subject:pip': 0.16; 'though?': 0.16; 'times,': 0.16; 'verbose':
0.16; 'wrote:': 0.16; 'problem': 0.16; 'python': 0.16;
'installing': 0.19; 'pm,': 0.19; 'to:addr:python-list': 0.20;
'option': 0.20; "i've": 0.22; 'progress': 0.22; 'install': 0.23;
'command': 0.23; 'installed': 0.23; 'to:name:python-
list@python.org': 0.24; 'skip:- 10': 0.25; 'output': 0.28; 'header
:User-Agent:1': 0.30; 'attempt': 0.31; 'packages': 0.31; 'python-
list': 0.32; 'received:10.0': 0.32; 'received:mailchannels.net':
0.32; 'received:relay.mailchannels.net': 0.32; 'but': 0.32;
'someone': 0.34; 'header:In-Reply-To:1': 0.34; 'following': 0.35;
'possibly': 0.36; 'couple': 0.37; "it's": 0.37; 'hard': 0.37;
'subject:Request': 0.39; 'case.': 0.40; 'something': 0.40;
'should': 0.40; 'python.org': 0.62; 'come': 0.62; 'prevent': 0.67;
'header:Received:6': 0.67; 'received:64': 0.67; 'during': 0.69;
'further': 0.69; 'latter': 0.69; 'lucky': 0.69; 'manually': 0.69;
'implemented': 0.76; '"by': 0.84; 'enabled.': 0.84; 'executing':
0.84; 'subject: \n ': 0.84; 'opt': 0.89
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1686264722; a=rsa-sha256;
cv=none;
b=SDMXk+pZyCvhCk3Svidbsj2msCbhI+03DoLmjHzI4n8BgUTHQZm2lyEcrkNVmyvB0KbNz+
kTuZpHSlBuTmLeyfhdk/HwkdxDKW56C9kTrmTt71OAXl63QaPjDPI5CiDfiX6gCG09mtWs
9PBXe/5SyAGdO98u7l9+GXZI0RvZTSDoeuuA/ihP2gmRtPOVSSQfCcHSALimyTl5od+tc5
B50ipM8gAFqAYHJhjXe/6NSZFXm3jOpmJFaAfMW+1pUBh4LI7ZXndxo8xunRUVi43R0KC2
N2LT6EIu4tYlENlFeJi2+jBxHXWmn7G31fYTuy2pfmXqSORdK8NNJ4crIKX19w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1686264722;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=OMxIUiFg1onADU3M3al1KH0o8ULroUerjQ7rTXWyPrI=;
b=FQ2rqJKU++GYAdrZI7eu7p+Ror6gwJ+btxCItYERQ9CaCqjIWzxd4tW8QBL8YHeReunZSL
FbsrD2S2Bt2Nd6GP0XkbDvRn4+pwitHEKlQGRd0IjH5MiEWYhDvOGOpFKrymYbGAvacCvq
K3zDaOSJZlLvLkOHrbLZghnv752F+789prZGJd5+BxrEAdPRTJOo3wRDV8NfSImiVe/Akb
Mt9rs4BdcOgGclwx89gVHAbI5VwGn9s0Ni+Pngta8n2OGj/VhIfl+ra74OM/NsH8Jlvu9+
pv/iyaz0h06g6h/gVjCAAeanLH+u2ttad3fDl64LotYRX0fnNrADbHTolBmrjQ==
ARC-Authentication-Results: i=1; rspamd-6f5cfd578c-lcvt2;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Turn-Language: 368cabf27cbda246_1686264722493_2626981988
X-MC-Loop-Signature: 1686264722492:4168659259
X-MC-Ingress-Time: 1686264722492
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1686264722;
bh=OMxIUiFg1onADU3M3al1KH0o8ULroUerjQ7rTXWyPrI=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=sNHdSY7eczciyBLUG65I3mTGdNEt1S8gevHM/87XtNoGaLSznxrXj/qtRuCDspGbR
g53PlYQTJtRooEwppNRM7EfKf5saTk7XdoMBqWDcJqZrbVmKUUYCuvW0U/gkfKiOoM
o1SnN6k4tmVt1m9/nw8ULvCUHom1NLeKSH6EE3ExW53cdLyw4fdS2+CH1ZrWLsNrgm
xtQON8DiWa2+KTcl+c+olIYLTLatZJQTOzB8Bz2gUoMh0gpAjHB5v68DzjxZEFE2tw
GuYQjQ5Pjk9GDT2BeBTHh8pB0Ih9txwCs42wRILjulTfojx06fqiYXdP7vlDtQNRqX
2yF2tLTHL+A/Q==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.2
Content-Language: en-US
In-Reply-To: <CACL+1asS_pUqGpHY2zuP+5XU8RgB+VGUm3=CQ3BJqkmLXdnOQw@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <ac6b9f75-d7e1-f6e4-c714-705cf9c128e3@tompassin.net>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<CACL+1asS_pUqGpHY2zuP+5XU8RgB+VGUm3=CQ3BJqkmLXdnOQw@mail.gmail.com>
 by: Thomas Passin - Thu, 8 Jun 2023 22:52 UTC

On 6/8/2023 6:23 PM, Eryk Sun wrote:
> on 6/8/23, Thomas Passin via Python-list <python-list@python.org> wrote:
>>
>> It always gets installed, though.
>
> By default, the option to install pip is enabled. It's implemented by
> executing ensurepip after the interpreter is installed. However,
> ensurepip may silently fail during installation. As a CPython triager
> I've come across this problem a couple of times, but it should be
> rare. It can possibly be resolved by manually executing ensurepip via
> the following command:
>
> py [-3[.X]] -m ensurepip --default-pip --upgrade --verbose
>
> If Python is installed for all users, the latter should be executed
> from a shell that has administrator access. Even if this command also
> fails, the verbose output in the console may be helpful to further
> diagnose the problem.

Hah! I *knew* someone would come up with an exceptional case. It would
be pretty hard for an ordinary user to know about this encantation or
make progress if something does go wrong. Lucky for me I've always had
the python.org installer work smoothly.

"By default, the option to install pip is enabled" - Why would someone
opt not to install pip, though? Would that be an attempt to prevent
users from installing packages on their own?

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

<mailman.74.1686300281.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23550&group=comp.lang.python#23550

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: gva...@yahoo.no (Gisle Vanem)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Fri, 9 Jun 2023 10:44:35 +0200
Lines: 32
Message-ID: <mailman.74.1686300281.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<668c5aa1-5f78-1ea9-9a9e-2892b463ac7b@yahoo.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de BsJJKzaP3Hslt/VufYVXCQdswm8boJjJyT/M3zgBCuqQ==
Return-Path: <gvanem@yahoo.no>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=yahoo.no header.i=@yahoo.no header.b=QHC98JUx;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.038
X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'url-ip:140.82/16': 0.03;
'grep': 0.09; 'subject:Python': 0.12; 'url:github': 0.14; 'url-
ip:140/8': 0.15; 'carpenter': 0.16; 'process:': 0.16; 'slow':
0.16; 'subject:3.10': 0.16; 'subject:Installation': 0.16;
'subject:Issue': 0.16; 'subject:pip': 0.16; 'sync': 0.16;
'wrote:': 0.16; 'to:addr:python-list': 0.20; 'stuff': 0.25;
'tried': 0.26; 'header:User-Agent:1': 0.30; 'but': 0.32;
'windows': 0.34; 'header:In-Reply-To:1': 0.34; "skip:' 10": 0.37;
'subject:Request': 0.39; 'try': 0.40; 'best': 0.61; 'search':
0.61; 'everything': 0.63; 'amazing': 0.65; 'received:77': 0.67;
'man': 0.74; 'rights': 0.76; '(c)': 0.81; 'reserved.': 0.81;
'copyright': 0.84; 'subject: \n ': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.no; s=s2048;
t=1686300279; bh=rsdNZ9ZP6+OuIKhvwLwP5PJAIuyEUw62q+dFIBMVmdY=;
h=Subject:To:References:From:Date:In-Reply-To:From:Subject:Reply-To;
b=QHC98JUx0D8FmJpBe9DheNgoWfWM21EusJfanKRQQ0B8d5CJQQriswfSlyV3iP3QGsMVJrCt9DTMcrIvAjW042HZrlGpGWHZ0Y6YpLAQgLCRipfefLAD5rFoM3TYzh9cwOdqn5TJcST8vYjttgBfYl4Og49QCZSKK26pNxrTplt4FfEBkXCgiwbYNLvnkgukR5PpWG3qwU3JaBWHl2Db/43EIN465Lc0F4reafNBnwKIatBTSU35dIVQH3ghfDHijuXQSoHmqQfNJ+UFCRw+QwU9Co+KzCvLPL0WwH4S39ORsvSlXIimnj0b+/7neBvj72MHQTcR9DvCePCgOaxeqw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1686300279; bh=qnsKRCaXzA8B+W6BSiB7k1O4y2FzGa0BzpMRb02LNpn=;
h=X-Sonic-MF:Subject:To:From:Date:From:Subject;
b=Oy5cGcENSVhZ8VeWc3AEFKanjVqtl2Tcj5ktuxWdJebxLWdQ9AXvMcdwrZdj308PPasnHDHt0DWIF7P0qFALYAwCke7TXeX09Ho3zyIlo0FZhiiVbJTXG4S5lzcRp3FBTFhPqxbTXkg4P+aCfkP9rI3eEVZfs0SUgdD27IW4aLk3BQozpmAQLTBQKiWSqDDvqjYlb/mQKqlUHzSbHudirZzYyBPPdUCeD7jUvPZIZ4+T8hpmZuJ6gYtZzD15WdRJSvzlOkuyFBndiIaTkkS+3nZs5kIHBmbwW+M1BBfmTrnxcjOvSi68KoDvDvqZxANStYsvgzQT5zGJvxoIKQYiGw==
X-YMail-OSG: coQ8vdcVM1lH9BEkEsvM789OnbLCLBXuHQU074slxHdY1.DYl3zlQda3gIy7lyW
wX_dr1s5JpzB3bISHHsbDyn7s.9HLdWawZ4gzqFY8JMadF0NKfsD.CXslI47wI3y3xQmIFPRvLcC
jH08eaH5dNxuR97l25wihibH6.ofPIWBabGUt9HX2JJP_3Czhh9.sT8ZB41dqlDDfAo3FNVNn4vL
R7zlGyNKiOZPMi9YtRahkTsoRiclQ5BiHyaui2HL45mFV02P.KshrAxI1ziyU9EEnYjiz3o_38Nu
5jip6ulu6feowKso2iGalyMV0EZ00jvJUuQn2g5BolM6juJn4LA8qFj3HH4nXrEFeVarri3vs7lk
duwf2CwuV5itE0wmL9sXduM1j010LYUbCg6.8aYIBLQp_zM_vUCzxfCDzPG_rH4SY78eEO4xOgs5
t8p5oVOtRI.CVVjT7rDPiNib4oHtd6f4YCcqY0GxBpqsXMv0bwfpz70HBpUUwwDGxegJk8rc_d8j
lJD1V02x9ATSNp_8PezBoq7nDTjn2OPB8_nY59fb.20L5A5ZqBi1rIerpi9aq_weo04z8bBTorLt
gjl20W3uKOPmE_adSqwtSHdfQCYFEVA.H6ehs_ywRxefPL3S9gIgBRKmBkBEPLsTqjCcWz9AE6Ht
.Nzsrwg60z5Fu8pvi5dMHBjkwcO_xkPPPxgeiCHRNKkUXp0dd6LomFevy40p.OOvb6GuKA5Qhl_O
u52YN6nwoDlsX.2NcR1uz3w4yoNyn7SLoOSnGVTpxPpx.Yjz3_2I24_hGWVzMxCfIuXwZzIUnCbP
RNI30LYYPPmRxVTEdMf3S6UFKiQPpam4d6R3TOMbb6a5Z_dczJbShP5iAuillgcShHhqUZuzcU_Z
6z8O4_WRdBb95z4y0kNL1ybNWmBxYEpf8LBdsjeQ.wIqqjavAduPXotXPIEfbmk515DaHrg8y.jx
dvkshBpBjiOFIqsndbmqv4r3.f1Ctlj38M8HW_ks__Y8w1JTRkqUcq44IQNy_9XDGMkKx41XVrHF
HQt2MF1lfKFgo_83Qzwhy.BXB4wv.4tbzYMBOa5..LxhsIKBp.9zSPhJuDHAKrqmYYuYY6MbQPpR
S8buk8RlLUWYovilvUSmbBZy0g1ww7BMETvtgYFimU3rix8B2IfdLPilfBOkh8IpT06Wxt9xsgMF
2E5ZOCZkEcaoQG6UDc4OCP1dzDREZoBIdj5inta6nBDogoWXq.uNLyiVR42wZOjJjb_FjkE5.Xoy
tUmfkYXyE3wK5mm862awOuTdC015vqWZ8C6GrsdUPDaMCf32LQvYiBgpDHq_SKpiz.u7rBkRN2FX
IFjiPpoFyVsTRmuKMFnCTAC8WwAJwwqcow4xKcrM3PXhnjHwkCN4meacK1IDt6lgCqnRIjslpkCT
L.SqSiZu8UdqXHYPe74cdU2XzzWCFVbvPkIGfntFsQbM0XGp8867D3ufvwr64I8e7OVH20S5vYXH
hAeoZDOTU10TjWNkum1GGhNzmILbKqg5nsNDGWIr.CZVgg8D0qNqhM_T5RFDe3emfAlOa0TFp8Bb
sEFyRamTCMqXJtYR4RqHuZvUOpMtSACha2I95sT.6EdsZ7zMweuUTGN3uCetddq0By3Da65bymOh
Ey0Bzke3J.V81FTu_OSHwkx.gCJgKmCZbrB5q3QyBd5uuqPKIn5dz1DvTLNOpqk6jLLR1xFmkySF
lbLSexdieuolbxs.16aMzm63tTvz70wfMcAeqUHiNHFlBHmL06ojdTZhznACyBR00eyHb5mtNGxt
i_KVWZRtQekh13iIat2hCfuZj9_gI5xKa3QPyj9EgQXsMiYfJQkCCDKMBoabGHzz0_Vb0XDbUv3G
2LywcVejaoidh6fcxmi5EgNpFp2gcI4hniSkTqCsuKTjJi6iyGYy.eKwXeQvNSXwU_acTaItSYH2
_DBlDiJhObBEqsvfAXR9aOP6ZMcaWaorGKxjUG96xjxUqpH_HwttOi6OLnNbVra_tvr0EkKqEdUG
EYO1IFQsMx95zoej.W6AAkgGYxzxQ_9jK0mLRnWX2gOSiFGN_MXmIbcaU_XnTSE_vs4KxOIQrd4h
IGTdefYEFdDpGhiFW4FIigJexrCvHDzXBdT6MowrQFl6OGWRBp.E4MOgAhbVYFIaF8YnzzhTTj3j
0GjtpYmtkV2yYjyGQLhbUtqYN1OMLfiqwD463B.FUPOQAWGRSqdSbFvazlSHDGTRFiarCsn3Bavg
Pu7edyCTFqA--
X-Sonic-MF: <gvanem@yahoo.no>
X-Sonic-ID: 98f44c22-0d9c-4d13-9dc6-8e2a5bb78df0
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
In-Reply-To: <t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
Content-Language: en-GB
X-Mailer: WebService/1.1.21516
mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <668c5aa1-5f78-1ea9-9a9e-2892b463ac7b@yahoo.no>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
 by: Gisle Vanem - Fri, 9 Jun 2023 08:44 UTC

Dennis Lee Bieber wrote:

> 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.*"

Tried it. Oh man what a slow process:
sync & timer &
pwsh -Command Get-ChildItem -Path F:\gv\Python310\ -Recurse -Name -Filter "pip.*" &
timer

(15 results stripped). Completed in 12.44 sec!

As opposed to my own Envtool:
sync & timer &
envtool.exe --evry pip.* | grep "Python310" &
timer

(15 results stripped) Completed in 0.57 sec!

But I have 5 GByte of stuff under 'f:\gv\Python310\'

Envtool is at https://github.com/gvanem/Envtool
Works best together with the amazing EveryThing search engine
by David Carpenter at https://www.voidtools.com

--
--gv

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

<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23555&group=comp.lang.python#23555

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 09 Jun 2023 17:43:39 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation
Date: Fri, 09 Jun 2023 13:43:40 -0400
Organization: IISS Elusive Unicorn
Message-ID: <tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com> <14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com> <65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us> <mailman.62.1686155851.23016.python-list@python.org> <t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com> <8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net> <mailman.71.1686260433.23016.python-list@python.org>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 69
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-lNWaPInkcRqgTOIg3TaAW3mCaRURZpUB+uEO7YnwTzUkTRfqlTWenona6c6qfL5JsKc+s88QAbv3y9R!qkK08nt8uyUxBRcVjz7HEMWjS4OWvwANKzh+0tPGuWpry0xZzU3iK+nL+xH2BT2qXEa4mBWT
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 4377
 by: Dennis Lee Bieber - Fri, 9 Jun 2023 17:43 UTC

On Thu, 8 Jun 2023 17:22:22 -0400, Thomas Passin <list1@tompassin.net>
declaimed the following:

>On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote:
> 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%:
>
I always install in "All Users" mode, but specify a directory that is
NOT under "Program Files" -- in this case, C:\Python310

The PowerShell command recurses into all subdirectories of the -path
argument. As it shows, the ONLY "pip" found is the actual library module.

PS C:\Users\Owner> Get-ChildItem -Path C:\P*\ -Recurse -Name -Filter
"pip.*"
R\R-4.2.3\library\climextRemes\pip
R\R-4.2.3\library\vICC\help\figures\pip.png
Package Cache\{5C3F818F-9EF5-444C-9386-77A0063A383A}v3.10.11150.0\pip.msi
Package Cache\{861EF849-90A5-4F4A-BAD4-479141466551}v3.10.10150.0\pip.msi
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> Get-ChildItem -Path C:\P*\ -Recurse -Name -Filter
"pip*.exe"
Common Files\Microsoft Shared\ink\pipanel.exe
{F87E77CE-BAA2-49E1-AAE3-1F6B2704ABAA}\OFFLINE\8AFA5EE\A9DCCED0\Pipe.exe
PS C:\Users\Owner>

Two variations, both now including "Program Files" (and x86),
"ProgramData", and the Python install; one looking for
"pip<dot><anything>", the other "pip<anything><dot>exe". Again, nothing
found except the library module.

"ensurepip" appears to only verify that the library module is installed
and does not seem to look for any .exe or other convenience access file.

PS C:\Users\Owner> python -m ensurepip
Looking in links: c:\Users\Owner\AppData\Local\Temp\tmp0cr7yu4s
Requirement already satisfied: setuptools in c:\python310\lib\site-packages
(67.6.1)
Requirement already satisfied: pip in c:\python310\lib\site-packages
(23.0.1)
PS C:\Users\Owner>

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

<mailman.76.1686403766.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23557&group=comp.lang.python#23557

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Sat, 10 Jun 2023 09:29:15 -0400
Lines: 139
Message-ID: <mailman.76.1686403766.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
<557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de PJfkrT7mD1VZgYcPw/NDcwhL1gOWTKTkrONHDz6JkeSw==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=YR90c/Il;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.040
X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'pip': 0.04; 'searching':
0.05; '2023': 0.07; 'happened': 0.07; 'grep': 0.09; 'installer':
0.09; 'module.': 0.09; 'subject:Python': 0.12; '3.9': 0.16;
'directory.': 0.16; 'found.': 0.16; 'option.': 0.16;
'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'setuptools': 0.16; 'skip:c 100':
0.16; 'specify': 0.16; 'subject:3.10': 0.16;
'subject:Installation': 0.16; 'subject:Issue': 0.16;
'subject:pip': 0.16; 'wrote:': 0.16; 'python': 0.16; 'instead':
0.17; 'pm,': 0.19; 'thu,': 0.19; 'to:addr:python-list': 0.20;
"i've": 0.22; 'install': 0.23; 'command': 0.23; 'installed': 0.23;
'run': 0.23; '(and': 0.25; 'actual': 0.25; 'again,': 0.26;
'available,': 0.26; 'jun': 0.26; 'library': 0.26; '>>>': 0.28;
'output': 0.28; 'wrong': 0.28; 'header:User-Agent:1': 0.30;
'seem': 0.31; 'module': 0.31; 'python-list': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; 'there':
0.33; 'windows': 0.34; 'same': 0.34; 'package': 0.34; 'header:In-
Reply-To:1': 0.34; 'runs': 0.35; 'using': 0.37; "it's": 0.37;
'directory': 0.37; 'hard': 0.37; 'file': 0.38; 'could': 0.38;
'read': 0.38; 'two': 0.39; 'single': 0.39; 'subject:Request':
0.39; 'use': 0.39; 'appears': 0.40; 'both': 0.40; 'try': 0.40;
'including': 0.60; 'skip:o 10': 0.61; 'python.org': 0.62;
'verify': 0.64; 'requirement': 0.64; 'skip:r 40': 0.64; 'look':
0.65; 'named': 0.65; 'header:Received:6': 0.67; 'received:64':
0.67; 'right': 0.68; 'and,': 0.69; 'following:': 0.69; 'grand':
0.69; 'longer': 0.71; 'waiting': 0.73; 'little': 0.73; 'skip:c
70': 0.75; 'rights': 0.76; 'finds': 0.76; 'links:': 0.76; 'mode,':
0.76; 'skip:l 60': 0.76; '(c)': 0.81; 'reserved.': 0.81;
'copyright': 0.84; '(we': 0.84; 'shows,': 0.84; 'skip:{ 70': 0.84;
'subject: \n ': 0.84; 'want.': 0.84; 'convenience': 0.91; 'magic':
0.93
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1686403755; a=rsa-sha256;
cv=none;
b=Sa8joMl6Y+mvmhChCLRsACK67cBf1h8rgZcPsA5Z4T7u7P6kcB5ud6/eNxRjYRO4qGhUsM
4qJKmERpxL3LigEuruBi953+WkZuz/N5mpN3O1s0f2e1NhtiBeXdMs3NzJ6NUmEwMicWPo
feZqumK5x02mJiKYiQNTF8JNGJXlgCgdHYHDuAC1dwfnEO3Q/1M8RqrbaIQg2ki8gEM9Lx
rGO5S8B9PbIPPvvS0LC6EzwunSo17woBNxSXBAlOJQtykrSKKAdh8q7X7y/0zPVMtdmzdN
aqaQt5nsKcGv2EyUZVXSwcMnBWLMuhqJv7ir7F9QYPu9VEuE/LWfzelnrjrmKQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1686403755;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=YuDbn9RpwWhOLdP8rAhYSMvZBL0zvMqULixTwMwazbs=;
b=hPScCHTETARTa3DDNoROFH6x2y4CLise7Xgy2iGWpsTnktJ6WqdNUoXt03shY+iaUiK2yW
ZrZGmZ2eKlJ+XhtGU7nERV4d0JJOuTDIJX4oX4SGy3QNG3duUj3JniOPplHr9PNFtbK8CO
v7rIs5MUvINKoxx7IFujGQDinxEXxyZ24smGy342NHOGEcGvKpaYcPxoB4MuA2cGxwbZyU
sN+uPBDMTff4ijvN1oV6HPKRsRbulSpkkSIYUfy2RJ2heV0hk69auOYn2rbax1izt+6Iyn
0NhybrbumCJDpd8BfMspQWqDuMt5ck5myF8gmrRj8vOj+JBnIEawN4Ig2+eBuw==
ARC-Authentication-Results: i=1; rspamd-6c69b8658d-tt22k;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Whispering-Fearful: 5c35209b36d08760_1686403756168_1652293353
X-MC-Loop-Signature: 1686403756168:1696384287
X-MC-Ingress-Time: 1686403756168
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1686403755;
bh=YuDbn9RpwWhOLdP8rAhYSMvZBL0zvMqULixTwMwazbs=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=YR90c/IlxhzuVqJ/uBhLki7B9OdOSK8JrdTUjdMr947z5NJQyo4fKYICK0jt4gJsF
ewlJW8Y76CvlXz8pjVlPVeySeEyQRbMu/1tW5P8RbDn51qHKRWHHsXTK3F8FtdS+36
8JKvztxhKefdoJapKo7ZvhHT5TdaSMPCWWk8+ICoZFkJn0mLD4s18Fc72vm/c276Ii
H31TlbiCr+IQ43/rQ3vWzP2iNo2EyPqPxnaAcw/kfJQMsfYilG3bicSjP/+SKU6ZCU
0k6X1aUeTm8ooPWqUOW4jSq1sQ55BKkPb67lnN0Hc2cYlblmoWw6yFjG0FX36FTb/x
66jBKAxmQVk0g==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.2
Content-Language: en-US
In-Reply-To: <tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
 by: Thomas Passin - Sat, 10 Jun 2023 13:29 UTC

On 6/9/2023 1:43 PM, Dennis Lee Bieber via Python-list wrote:
> On Thu, 8 Jun 2023 17:22:22 -0400, Thomas Passin <list1@tompassin.net>
> declaimed the following:
>
>> On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote:
>> 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

I copied the wrong line of my output - pip.exe is in the same place as
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%:
>>
> I always install in "All Users" mode, but specify a directory that is
> NOT under "Program Files" -- in this case, C:\Python310
>
> The PowerShell command recurses into all subdirectories of the -path
> argument. As it shows, the ONLY "pip" found is the actual library module.
>
> PS C:\Users\Owner> Get-ChildItem -Path C:\P*\ -Recurse -Name -Filter
> "pip.*"
> R\R-4.2.3\library\climextRemes\pip
> R\R-4.2.3\library\vICC\help\figures\pip.png
> Package Cache\{5C3F818F-9EF5-444C-9386-77A0063A383A}v3.10.11150.0\pip.msi
> Package Cache\{861EF849-90A5-4F4A-BAD4-479141466551}v3.10.10150.0\pip.msi
> 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> Get-ChildItem -Path C:\P*\ -Recurse -Name -Filter
> "pip*.exe"
> Common Files\Microsoft Shared\ink\pipanel.exe
> {F87E77CE-BAA2-49E1-AAE3-1F6B2704ABAA}\OFFLINE\8AFA5EE\A9DCCED0\Pipe.exe
> PS C:\Users\Owner>
>
> Two variations, both now including "Program Files" (and x86),
> "ProgramData", and the Python install; one looking for
> "pip<dot><anything>", the other "pip<anything><dot>exe". Again, nothing
> found except the library module.
>
> "ensurepip" appears to only verify that the library module is installed
> and does not seem to look for any .exe or other convenience access file.
>
> PS C:\Users\Owner> python -m ensurepip
> Looking in links: c:\Users\Owner\AppData\Local\Temp\tmp0cr7yu4s
> Requirement already satisfied: setuptools in c:\python310\lib\site-packages
> (67.6.1)
> Requirement already satisfied: pip in c:\python310\lib\site-packages
> (23.0.1)
> PS C:\Users\Owner>

The standard python.org installs pip.exe in the Scripts directory and a
pip folder in the Lib\site-packages directory. The pip directory does
not include an actual file named "pip.py", but through Python invocation
magic (involving __main__), py -m pip finds the right entry point and
runs what you want.

We can find pip.exe using good old-fashioned dir (we don't need any
new-fangled Powershell):

C:\Users\tom>dir AppData\Local\Programs\Python /Aa /S /W /B |find
"pip"|find "Scripts"
C:\Users\tom\AppData\Local\Programs\Python\Python310\Scripts\pip.exe
C:\Users\tom\AppData\Local\Programs\Python\Python310\Scripts\pip3.10.exe
C:\Users\tom\AppData\Local\Programs\Python\Python310\Scripts\pip3.exe
C:\Users\tom\AppData\Local\Programs\Python\Python310\Scripts\pipx.exe
C:\Users\tom\AppData\Local\Programs\Python\Python311\Scripts\pip.exe
C:\Users\tom\AppData\Local\Programs\Python\Python311\Scripts\pip3.11.exe
C:\Users\tom\AppData\Local\Programs\Python\Python311\Scripts\pip3.exe
C:\Users\tom\AppData\Local\Programs\Python\Python37\Scripts\pip.exe
C:\Users\tom\AppData\Local\Programs\Python\Python37\Scripts\pip3.10.exe
C:\Users\tom\AppData\Local\Programs\Python\Python37\Scripts\pip3.7.exe
C:\Users\tom\AppData\Local\Programs\Python\Python37\Scripts\pip3.exe

Searching for a "pip" directory:

C:\Users\tom>dir AppData\Local\Programs\Python /Ad /S /W /B |find "pip"
|find /V "_"
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\ensurepip
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip-23.1.dist-info
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\pipx
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\pipx-1.1.0.dist-info
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\mypy\typeshed\stdlib\ensurepip
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\mypy\typeshed\stdlib\@python2\ensurepip
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\pipx\commands
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\win32\Demos\pipes
C:\Users\tom\AppData\Local\Programs\Python\Python311\Lib\ensurepip
C:\Users\tom\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip
C:\Users\tom\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip-23.1.2.dist-info
C:\Users\tom\AppData\Local\Programs\Python\Python37\Lib\ensurepip
C:\Users\tom\AppData\Local\Programs\Python\Python37\Lib\site-packages\pip
C:\Users\tom\AppData\Local\Programs\Python\Python37\Lib\site-packages\pip-22.3.1.dist-info
C:\Users\tom\AppData\Local\Programs\Python\Python37\Lib\site-packages\win32\Demos\pipes

A little hard to read but it does find the site-packages pip directory.
If you have a grep or awk available, you could use it instead of find to
make the output more concise. Or if you have grep or awk and don't mind
waiting a little longer for the results:

C:\Users\tom>dir AppData /Ad /S /W /B |awk "/\\pip$/ {print $1}"
C:\Users\tom\AppData\Local\pip
C:\Users\tom\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip
C:\Users\tom\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip
C:\Users\tom\AppData\Local\Programs\Python\Python37\Lib\site-packages\pip
C:\Users\tom\AppData\Roaming\Python\Python39\site-packages\pip

and, with grep:

C:\Users\tom>dir AppData /Aa /S /W /B |agrep "pip.exe"
C:\Users\tom\AppData\Local\Programs\Python\Python310\Scripts\pip.exe
C:\Users\tom\AppData\Local\Programs\Python\Python311\Scripts\pip.exe
C:\Users\tom\AppData\Local\Programs\Python\Python37\Scripts\pip.exe
C:\Users\tom\AppData\Roaming\Python\Python310\Scripts\pip.exe
C:\Users\tom\AppData\Roaming\Python\Python39\Scripts\pip.exe
Grand Total: 5 match(es) found.

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

<mailman.77.1686414777.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23560&group=comp.lang.python#23560

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: eryk...@gmail.com (Eryk Sun)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Sat, 10 Jun 2023 11:32:53 -0500
Lines: 54
Message-ID: <mailman.77.1686414777.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
<557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
<CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de BfkVih7hMQ2uMEW0UijuHwy1HVKJkASx+ZBoTV3km3Bw==
Return-Path: <eryksun@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=SgmGSksR;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'variable': 0.05; 'filter':
0.07; 'loop': 0.07; 'matches': 0.07; 'string': 0.07; 'cc:addr
:python-list': 0.09; 'example:': 0.09; 'received:mail-
ot1-x330.google.com': 0.09; 'subject:Python': 0.12; 'cc:no real
name:2**0': 0.14; 'appended': 0.16; 'directory,': 0.16;
'filename': 0.16; 'matching.': 0.16; 'subject:3.10': 0.16;
'subject:Installation': 0.16; 'subject:Issue': 0.16;
'subject:pip': 0.16; 'wrote:': 0.16; 'name.': 0.19;
'cc:addr:python.org': 0.20; 'cc:2**0': 0.25; 'else': 0.27;
'example,': 0.28; 'python-list': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'path': 0.33; 'skip:" 20': 0.34;
'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'following': 0.35; 'from:addr:gmail.com': 0.35; 'using': 0.37;
'directory': 0.37; 'file': 0.38; 'subject:Request': 0.39; 'base':
0.40; 'match': 0.40; 'search': 0.61; 'skip:o 10': 0.61; 'simply':
0.63; 'named': 0.65; 'required': 0.65; 'compare': 0.69; 'skip:f
30': 0.71; 'name,': 0.75; '(we': 0.84; 'characters': 0.84;
'more?': 0.84; 'strings': 0.84; 'subject: \n ': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20221208; t=1686414775; x=1689006775;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=WO7SSOyX/XqfS8V6uJKZX2Lh/Opo9bdgiYrDw6lF7AE=;
b=SgmGSksRuaGyV59e7SCabQer+ArPmWAR0N1MN9hXIGj8tK++zrFsjfP+trd6jF4Yjw
r3RqOGVS9+cRRizVhieW0fm9ppTHXeb1lN8g4fywPrl+Bnwd70IqtwX2RI4ZUovxpyTW
7GCytBzFF+LSF+82A/Qigc6hQt9qgEz66l7sw6QXJMLBBGHNqmrz03lahtK8PRLhv2zD
f//4uJSNMdnne0fo1jmXeJxizjFw1eTjpx8DVnWAhwqLMjigo3a9LFrDldFCysB8uxfd
0Vcetl4pqmsL47m7/knB18jcK4zDe+v30gWSRP8XOkhbV5rrTWChX87QqGCPt1kpMFBV
GsAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1686414775; x=1689006775;
h=cc:to:subject:message-id:date:from:references:in-reply-to
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=WO7SSOyX/XqfS8V6uJKZX2Lh/Opo9bdgiYrDw6lF7AE=;
b=lgqY7+Hzf7j+xZYyAj12+ADI3KY1BOi19JujD0frzKnSICieLnV/P6m3nMiOhm00+k
l+nc6ytvfPSckbhg9mnbGN/W9raUAGcTJzSsfX8svgt5pa0Wik2o126gpUC/+BmCSF7i
c7lAESVmcDxL6L1mtnlBKaK2OtYj14v/32jkL81a/PFc2rveK5WrASUDphWc1WL3+/5u
0nIBtiekesRRG4p/1+5l1+joykgjtPMwwA9vmKkkSGfKTRuO4MLbRytUiv7siLZH+IL6
6cRy06NAwplJ0P4b7dLlfj+2dlk/whKmpZ/c1qzRkKh8/1VzgLYmwMfkRjayuA7uPwbU
NHeA==
X-Gm-Message-State: AC+VfDzT2anxmmgIz+HCSOeZl6cv9OD4qBEfQikdjxm3F1UBVBpYLeDp
dzRKa0cWQ42z5xFUlyPYwO7X/raUbaZDIUxKCbSrubeB
X-Google-Smtp-Source: ACHHUZ4gnMiHNT6fDgF8DugSzxxTaQXLgzD1m6XiPpYmyyykHfaR1YNdAyVn0/LKcvIwm6d0juNVPeObCMmn1JDZQWE=
X-Received: by 2002:a05:6808:2014:b0:398:45e0:38c0 with SMTP id
q20-20020a056808201400b0039845e038c0mr1155543oiw.15.1686414774795; Sat, 10
Jun 2023 09:32:54 -0700 (PDT)
In-Reply-To: <557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
<557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
 by: Eryk Sun - Sat, 10 Jun 2023 16:32 UTC

On 6/10/23, Thomas Passin via Python-list <python-list@python.org> wrote:
>
> We can find pip.exe using good old-fashioned dir (we don't need any
> new-fangled Powershell):
>
> C:\Users\tom>dir AppData\Local\Programs\Python /Aa /S /W /B |find
> "pip"|find "Scripts"

CMD's `dir` and `for` commands support simple wildcard matching. For
example, the following recursively searches for a file named
"pip*.exe" under "%ProgramFiles%\Python311":

C:\>dir /b /s "%ProgramFiles%\Python311\pip*.exe"
C:\Program Files\Python311\Scripts\pip.exe
C:\Program Files\Python311\Scripts\pip3.11.exe
C:\Program Files\Python311\Scripts\pip3.exe

C:\>for /r "%ProgramFiles%\Python311" %f in (pip*.exe) do @(echo %f)
C:\Program Files\Python311\Scripts\pip.exe
C:\Program Files\Python311\Scripts\pip3.11.exe
C:\Program Files\Python311\Scripts\pip3.exe

The following recursively searches for a directory named "pip" under
"%ProgramFiles%\Python311:

C:\>dir /ad /b /s "%ProgramFiles%\Python311\pip"
C:\Program Files\Python311\Lib\site-packages\pip

Or search for a directory name that starts with "pip":

C:\>dir /ad /b /s "%ProgramFiles%\Python311\pip*"
C:\Program Files\Python311\Lib\site-packages\pip
C:\Program Files\Python311\Lib\site-packages\pip-22.3.1.dist-info
C:\Program Files\Python311\Lib\site-packages\win32\Demos\pipes

With a recursive `for /r path [/d]` loop, the strings in the set have
to include wildcard characters to actually check for an existing file
or directory, else each string in the set simply gets appended to the
directory names in the recursive walk. For example, the following
recursively searches for a directory (i.e. /d) named "pip*" under
"%ProgramFiles%\Python311":

C:\>for /r "%ProgramFiles%\Python311" /d %d in (pip*) do @(echo %d)
C:\Program Files\Python311\Lib\site-packages\pip
C:\Program Files\Python311\Lib\site-packages\pip-22.3.1.dist-info
C:\Program Files\Python311\Lib\site-packages\win32\Demos\pipes

To match a specific name, you can filter the matches using an `if`
statement to compare the base filename of the loop variable (i.e.
[n]ame + e[x]tension) with the required name. For example:

C:\>for /r "%ProgramFiles%\Python311" /d %d in (pip*) do @(
More? if "%~nxd"=="pip" echo %d)
C:\Program Files\Python311\Lib\site-packages\pip

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

<mailman.78.1686422435.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23563&group=comp.lang.python#23563

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Sat, 10 Jun 2023 14:31:52 -0400
Lines: 60
Message-ID: <mailman.78.1686422435.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
<557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
<CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com>
<10134763-feb8-078d-cf88-2837a953b102@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de QIyOdC0PzE6nShB9k01pTA/2M1W3Te1na9glgDO0rFDw==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=Whg9DJ0H;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.008
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'variable': 0.05; 'filter':
0.07; 'loop': 0.07; 'matches': 0.07; 'string': 0.07; 'example:':
0.09; 'subject:Python': 0.12; 'appended': 0.16; 'directory,':
0.16; 'eryk': 0.16; 'filename': 0.16; 'matching.': 0.16;
'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'remember,': 0.16; 'subject:3.10':
0.16; 'subject:Installation': 0.16; 'subject:Issue': 0.16;
'subject:pip': 0.16; 'wrote:': 0.16; 'figure': 0.19; 'name.':
0.19; 'pm,': 0.19; 'to:addr:python-list': 0.20; 'to:name:python-
list@python.org': 0.24; 'else': 0.27; 'example,': 0.28; 'header
:User-Agent:1': 0.30; 'python-list': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'path': 0.33; "didn't":
0.34; 'skip:" 20': 0.34; 'header:In-Reply-To:1': 0.34;
'following': 0.35; 'using': 0.37; 'directory': 0.37; 'hard': 0.37;
'file': 0.38; 'subject:Request': 0.39; 'use': 0.39; 'base': 0.40;
'match': 0.40; 'want': 0.40; 'search': 0.61; 'skip:o 10': 0.61;
'simply': 0.63; 'named': 0.65; 'required': 0.65;
'header:Received:6': 0.67; 'received:64': 0.67; 'compare': 0.69;
'skip:f 30': 0.71; 'name,': 0.75; '(we': 0.84; 'characters': 0.84;
'more?': 0.84; 'strings': 0.84; 'subject: \n ': 0.84; 'yes;': 0.91
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1686421924; a=rsa-sha256;
cv=none;
b=M9dwKYOBplYHhGkTT74BXwd4lYrljyfVokuNi9RumQ3boRCBoDuOk2D4V1Jl6WwDaJpkhi
IOo0pxASBesa9GQL/F4TZUB6CshrHCNsB0LBAbDPb+f8b1WDiMbvRKwvDvE53Rpz8grCmm
a516xwYCICHAVIInJmL8e3AqNV5pls0W8OjKtxqH7qNuTlY/7K3XiQhnpd41IC0l+ntW3t
EAd/UdaiyKRhBhHYQJUiEouOJqh5ZI7UiwlkqRzIIrG/5JRhQ67dNQHEfVGEXBEjdQhwzf
oNNTZg6UgxuMY6s33g3gUkj0fQIzpBcRU+V9TZZVsamB9NrQHQfUzvSCUdcrFQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1686421924;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=epoXXEFN00W9Oc6s9B5Ei7U9IKKWr00bDKoTbAfXDIM=;
b=VnD+coURjDmjnII2EIDQr4zLh5wsk5Becvn/2XI0dWL+ts5mKOO7PTwnxpJqtHatEw9YVX
pZev8CuUO5RXy8nISoonAILYpHhDKRuKXffsytm3xiYuv1cPzT/DtfKC70WDiVuZMhKbbr
vnl6pVYfYq3LktVMp3UY7hzUMDGuZ9+wrC8zBFroMdyr9wb3XdddPIHi1NGT1CQ7HI3Ool
vTceXOWpuTLkAKf1z2l3ZXh6GHbH/vIM6oOJ6W3jY1F7erXB2QzVa6Q7bN533N+F8/9hok
0FW1mNoB3XH5QrBP8fI/aWxhLi9cCGKw/0VYZ2h0vrXuYtT2ZBNYUtnQbSDDgA==
ARC-Authentication-Results: i=1; rspamd-7c78575475-wshns;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Chemical-Reaction: 1b58ff152434c834_1686421924845_4069796776
X-MC-Loop-Signature: 1686421924845:3808147752
X-MC-Ingress-Time: 1686421924844
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1686421924;
bh=epoXXEFN00W9Oc6s9B5Ei7U9IKKWr00bDKoTbAfXDIM=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=Whg9DJ0H46txGTwYziSZfGgfBS4S6SEh8Nihe51np+XWLmE4B/hd3rqZ/xCAfqA/G
MZGfrpIw4hRGAsm1QMMdkZ8drIp2XK1A09xuLC/Diq5gdcpBmqCrc2gQcXFxw/iVKg
AAzzfAn+b34hzJgbFsC5f+9kKgGUUdkYvDDSlyvZoSXg5XSk60jkRNfz8+dutkzGm7
S+07lzXeJui5RJwf7HDRAvVDNuKovUW5PHd+74g3glU9VgAVyLN2pDs3ElgWJhOtw7
sE9VF38PywHgYJNWjnKW4ivxM7G5yseaimPd6dRCqJ3HwePhp5I8dL2macUGTuFgZd
+umdwB2nffliw==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.2
Content-Language: en-US
In-Reply-To: <CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <10134763-feb8-078d-cf88-2837a953b102@tompassin.net>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
<557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
<CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com>
 by: Thomas Passin - Sat, 10 Jun 2023 18:31 UTC

On 6/10/2023 12:32 PM, Eryk Sun wrote:
> On 6/10/23, Thomas Passin via Python-list <python-list@python.org> wrote:
>>
>> We can find pip.exe using good old-fashioned dir (we don't need any
>> new-fangled Powershell):
>>
>> C:\Users\tom>dir AppData\Local\Programs\Python /Aa /S /W /B |find
>> "pip"|find "Scripts"
>
> CMD's `dir` and `for` commands support simple wildcard matching. For
> example, the following recursively searches for a file named
> "pip*.exe" under "%ProgramFiles%\Python311":
>
> C:\>dir /b /s "%ProgramFiles%\Python311\pip*.exe"
> C:\Program Files\Python311\Scripts\pip.exe
> C:\Program Files\Python311\Scripts\pip3.11.exe
> C:\Program Files\Python311\Scripts\pip3.exe
>
> C:\>for /r "%ProgramFiles%\Python311" %f in (pip*.exe) do @(echo %f)
> C:\Program Files\Python311\Scripts\pip.exe
> C:\Program Files\Python311\Scripts\pip3.11.exe
> C:\Program Files\Python311\Scripts\pip3.exe
>
> The following recursively searches for a directory named "pip" under
> "%ProgramFiles%\Python311:
>
> C:\>dir /ad /b /s "%ProgramFiles%\Python311\pip"
> C:\Program Files\Python311\Lib\site-packages\pip
>
> Or search for a directory name that starts with "pip":
>
> C:\>dir /ad /b /s "%ProgramFiles%\Python311\pip*"
> C:\Program Files\Python311\Lib\site-packages\pip
> C:\Program Files\Python311\Lib\site-packages\pip-22.3.1.dist-info
> C:\Program Files\Python311\Lib\site-packages\win32\Demos\pipes
>
> With a recursive `for /r path [/d]` loop, the strings in the set have
> to include wildcard characters to actually check for an existing file
> or directory, else each string in the set simply gets appended to the
> directory names in the recursive walk. For example, the following
> recursively searches for a directory (i.e. /d) named "pip*" under
> "%ProgramFiles%\Python311":
>
> C:\>for /r "%ProgramFiles%\Python311" /d %d in (pip*) do @(echo %d)
> C:\Program Files\Python311\Lib\site-packages\pip
> C:\Program Files\Python311\Lib\site-packages\pip-22.3.1.dist-info
> C:\Program Files\Python311\Lib\site-packages\win32\Demos\pipes
>
> To match a specific name, you can filter the matches using an `if`
> statement to compare the base filename of the loop variable (i.e.
> [n]ame + e[x]tension) with the required name. For example:
>
> C:\>for /r "%ProgramFiles%\Python311" /d %d in (pip*) do @(
> More? if "%~nxd"=="pip" echo %d)
> C:\Program Files\Python311\Lib\site-packages\pip

Yes; I didn't want to get too esoteric with commands that are hard to
figure out and remember, because then why not use Powershell, whose
commands are hard to figure out and remember?

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

<mailman.80.1686426374.23016.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23565&group=comp.lang.python#23565

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python
3.10 Installation
Date: Sat, 10 Jun 2023 15:39:55 -0400
Lines: 31
Message-ID: <mailman.80.1686426374.23016.python-list@python.org>
References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
<557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
<CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com>
<10134763-feb8-078d-cf88-2837a953b102@tompassin.net>
<CACL+1astoO5AJc2Rw7uNpVmbt0FavWF+jwsy03fdBguwqHym3g@mail.gmail.com>
<1cad4aec-6707-56d7-ec37-5835fb4bf147@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de PEOx1n0A7HcbhUhxYoUR2Av5bhSaQxeS+uPzO40bea9A==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=b96QAALo;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.008
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'variable': 0.05; 'loop':
0.07; 'prompt,': 0.09; 'subject:Python': 0.12; "(i'm": 0.16;
'batch': 0.16; 'command.': 0.16; 'directory,': 0.16; 'eryk': 0.16;
'expressions': 0.16; 'expressions.': 0.16; 'filename': 0.16;
'hardly': 0.16; 'loops': 0.16; 'obscure.': 0.16; 'personally,':
0.16; 'pipe': 0.16; 'received:10.0.0': 0.16; 'received:64.90':
0.16; 'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'remember,': 0.16; 'script.':
0.16; 'subject:3.10': 0.16; 'subject:Installation': 0.16;
'subject:Issue': 0.16; 'subject:pip': 0.16; 'wrote:': 0.16;
"aren't": 0.19; 'figure': 0.19; 'pm,': 0.19; 'reduce': 0.19;
'to:addr:python-list': 0.20; 'command': 0.23; 'to:name:python-
list@python.org': 0.24; 'examples': 0.25; 'seems': 0.26;
'pattern': 0.26; 'output': 0.28; 'header:User-Agent:1': 0.30;
'effect': 0.31; 'python-list': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'unless': 0.32; 'but':
0.32; "i'm": 0.33; 'particular': 0.33; 'script': 0.33; 'use,':
0.33; "didn't": 0.34; 'header:In-Reply-To:1': 0.34; 'majority':
0.35; 'those': 0.36; 'really': 0.37; 'using': 0.37; "it's": 0.37;
'hard': 0.37; 'way': 0.38; 'subject:Request': 0.39; 'use': 0.39;
'want': 0.40; 'should': 0.40; 'included': 0.61; 'search': 0.61;
'me.': 0.62; 'day,': 0.62; 'nearly': 0.67; 'header:Received:6':
0.67; 'received:64': 0.67; 'further': 0.69; 'ever.': 0.69;
'powerful.': 0.69; 'plus': 0.73; 'easy': 0.74; 'field': 0.78;
'powerful': 0.84; 'appearance': 0.84; 'completeness': 0.84;
'dinosaur': 0.84; 'subject: \n ': 0.84; 'unwanted': 0.84; 'yes;':
0.91
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1686425996; a=rsa-sha256;
cv=none;
b=Ux2kV75GSAWDBTbxhtYyVdpRvmlvXb0ibcxe99k414ObQancbbWLWlL82lRrFIJpTdvtUF
QaVjDcpU7oe3JTnKGLc0L5rsI5jDUlcToJIJ0XFCd9agQ5PkKT1eiMeMvMVoLnOYsZZz2c
4trM8xvPNafsp9eMUIFKJzsOcq+sLMxaRFN0rzNWh5xwrbWvcRH/J7EaZvigk3v4bwABe2
RqVl/U/+WeCJpxOxeXFPzvxxDet5sSxeqfVGzrIlXXrE1b+OuKau6jsv448iXn9yk7qXo9
9sMYTVgQhdXnnN1UxCLDElT6wWdyon3CZD9aZB4RRiOU5lYJ0hDM9TI1Mn8KbA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1686425996;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=oKUpMUO8i+7xTLCrKEPFffNpqM2D4PTTppR6XRcNCVI=;
b=B6zBbSdPPOb+2Xffc2KDBrAJgwPc10CXHRBPpQpPxfE0/eQjYKTQDaVPjdcZJcKY/IP/Zc
SC3vswCN41bTzb/1m2D8zcAbVTNgbMKkqVqed+Q3OQGnIA1MOsF54pHvs/hqG8UvF1VPEW
luctWxFvorpCDYt78MSrRCU9SD9n5Pbmegb2lotSqYdiRIsBEPTAC8AAdMZU93uUxc4AxN
mqgQQCXv/3M/IjnqV3a06Ipe8evg/GnZSN2L0YpTF+Qyb3KdIM3k4nIMVAw0cBRXZTvbUI
5pRjVfbqBMQqn5QZyYGSLIyKwqJxodS9olzsrkOWLUiV3NAYCU1JDK5fItTvWA==
ARC-Authentication-Results: i=1; rspamd-6c69b8658d-4hbql;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Scare-Shade: 3e88215e4116b4fb_1686425996656_884154998
X-MC-Loop-Signature: 1686425996655:1877801584
X-MC-Ingress-Time: 1686425996655
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1686425996;
bh=oKUpMUO8i+7xTLCrKEPFffNpqM2D4PTTppR6XRcNCVI=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=b96QAALoJYPmDEcFz+xtw6KiRz6CztUEYAbii1sI9G0VyCoN3L47L/8WHGhXrgApT
ZIYwxiyMKLHITC0DyxyBltotZo7iiM5OVpDxbBxlWuyyDQ1nY15tpKaZX87SVfs1zu
boI2viVjYM9e44CFMdUUpdH11qHKvs1LK2b9Al2YF1Aaos1yTKH/pm6sz0fupk90+a
PIb0FAgOw1svA7VR8T7v+JASAhDlM6aOiONUUzeNkTWsnCOO/8ZC79ftxccXhAFPfT
/NAlovIAHJESfZGoW8Zsxp6wQl5Aw2zo08piOXX8Pbt9Kpu08nt0uZwaWpgDtJc9cT
EpyUyu3/2gVjQ==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.2
Content-Language: en-US
In-Reply-To: <CACL+1astoO5AJc2Rw7uNpVmbt0FavWF+jwsy03fdBguwqHym3g@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <1cad4aec-6707-56d7-ec37-5835fb4bf147@tompassin.net>
X-Mailman-Original-References: <CAHhuniOjfo0XEy3k0PiYGpxcQfmwqLAdUDiGALFj0vV9XWXwPA@mail.gmail.com>
<14a5d5f5-3065-0087-182c-c45c7ec3d4d3@mrabarnett.plus.com>
<65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us>
<mailman.62.1686155851.23016.python-list@python.org>
<t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com>
<8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net>
<mailman.71.1686260433.23016.python-list@python.org>
<tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com>
<557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net>
<CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com>
<10134763-feb8-078d-cf88-2837a953b102@tompassin.net>
<CACL+1astoO5AJc2Rw7uNpVmbt0FavWF+jwsy03fdBguwqHym3g@mail.gmail.com>
 by: Thomas Passin - Sat, 10 Jun 2023 19:39 UTC

On 6/10/2023 3:20 PM, Eryk Sun wrote:
> On 6/10/23, Thomas Passin via Python-list <python-list@python.org> wrote:
>>
>> Yes; I didn't want to get too esoteric with commands that are hard to
>> figure out and remember, because then why not use Powershell, whose
>> commands are hard to figure out and remember?
>
> Using `dir /s [/ad] [/b] "[path\]pattern"` with a wildcard pattern is
> a simple way to recursively search for a filename or directory,
> without needing to pipe the output to a findstr/grep/awk command. It's
> also fast. Of course, CMD's wildcards aren't nearly as powerful as
> regular expressions.

I used find to reduce the number of unwanted hits, which was helpful and
easy to understand even if not very powerful.

> The examples I included with `for` loops in CMD were for completeness
> to show how to get the results in a loop variable for further
> processing in a batch script. Personally, I use `for` loops a lot even
> when working at the command prompt, but I'm a dinosaur in that regard.
> Using PowerShell really should be preferred nowadays.

If one is doing them every day, and especially if it's for a script that
will be reused, those loops expressions are valuable. For a one-shot
use, and for the majority of users who (I'm sure) don't use them very
often, they can be pretty obscure.

PowerShell has some kind of repulsive field effect on me. Plus it has an
ugly console appearance and seems slow. So I avoid it unless I find
some particular case I really need it for, which is hardly ever.

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

<q2l98iptg44ugmpk1bupeoup59mevbo84k@4ax.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=23567&group=comp.lang.python#23567

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 10 Jun 2023 20:21:43 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation
Date: Sat, 10 Jun 2023 16:21:43 -0400
Organization: IISS Elusive Unicorn
Message-ID: <q2l98iptg44ugmpk1bupeoup59mevbo84k@4ax.com>
References: <65a13027-7202-53ee-fb7e-08ebaa5d3fa2@wichmann.us> <mailman.62.1686155851.23016.python-list@python.org> <t1948i95oqeeft1rocrn5p6lkasctoko54@4ax.com> <8d5a68c4-6bca-9a01-e443-6e57d178948b@tompassin.net> <mailman.71.1686260433.23016.python-list@python.org> <tsn68idas7f9p2sbnuv90ts4hpv23sdjr4@4ax.com> <557ca297-2fc4-57b8-0b52-ad3350b4c63e@tompassin.net> <CACL+1asnM0SKuyh_es2d38ATyendOyHj7TmtHG7JXQv6Lbo9QA@mail.gmail.com> <mailman.77.1686414777.23016.python-list@python.org>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 108
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-6k1Nltl++c7cspoNYF6rhxY1+hwiKZrUjCA9TSTCA/oLwX/kukC9HyabyfIKwZHxldDJYv5NSXjf5Tr!+maiUTs/IBXnk4zQAh11cnM5f2rEk1JQnpf3BhVeukrmNTpv8vHCwgp5RE5I+rmnqkgEFZZ8
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Lee Bieber - Sat, 10 Jun 2023 20:21 UTC

On Sat, 10 Jun 2023 11:32:53 -0500, Eryk Sun <eryksun@gmail.com> declaimed
the following:

>On 6/10/23, Thomas Passin via Python-list <python-list@python.org> wrote:
>>
>> We can find pip.exe using good old-fashioned dir (we don't need any
>> new-fangled Powershell):
>>
>> C:\Users\tom>dir AppData\Local\Programs\Python /Aa /S /W /B |find
>> "pip"|find "Scripts"
>
>CMD's `dir` and `for` commands support simple wildcard matching. For
>example, the following recursively searches for a file named
>"pip*.exe" under "%ProgramFiles%\Python311":
>

So far we've had examples of Python installed for current user, and
Python installed for all users /in Program Files/.

My install is for all users, but is in a top-level directory of its own
(Program Files causes problems when using pip and not remembering to open
an Admin shell).

> C:\>dir /b /s "%ProgramFiles%\Python311\pip*.exe"

So... Here are the results on my machine searching ALL of C:\

C:\Users\Owner>dir /b /s c:\pip*.exe
c:\Apps\ADW Software Modula-2\ASCII\pipedexec.exe
c:\Apps\ADW Software Modula-2\Unicode\pipedexec.exe
c:\GNAT\2019\share\gdb-8.3\python-2.7.16\Scripts\pip.exe
c:\GNAT\2019\share\gdb-8.3\python-2.7.16\Scripts\pip2.7.exe
c:\GNAT\2019\share\gdb-8.3\python-2.7.16\Scripts\pip2.exe
c:\Program Files (x86)\Common Files\Microsoft Shared\ink\pipanel.exe
c:\ProgramData\{F87E77CE-BAA2-49E1-AAE3-1F6B2704ABAA}\OFFLINE\8AFA5EE\A9DCCED0\Pipe.exe
c:\Users\All
Users\{F87E77CE-BAA2-49E1-AAE3-1F6B2704ABAA}\OFFLINE\8AFA5EE\A9DCCED0\Pipe.exe
c:\Users\Owner\AppData\Local\python\mu\mu_venv-38-20230331-155858\Scripts\pip-3.8.exe
c:\Users\Owner\AppData\Local\python\mu\mu_venv-38-20230331-155858\Scripts\pip.exe
c:\Users\Owner\AppData\Local\python\mu\mu_venv-38-20230331-155858\Scripts\pip3.8.exe
c:\Users\Owner\AppData\Local\python\mu\mu_venv-38-20230331-155858\Scripts\pip3.exe
c:\Users\Public\Programs\mblock\resources\app\mlink-v2\exec\python-env\win\Scripts\pip.exe
c:\Users\Public\Programs\mblock\resources\app\mlink-v2\exec\python-env\win\Scripts\pip3.6.exe
c:\Users\Public\Programs\mblock\resources\app\mlink-v2\exec\python-env\win\Scripts\pip3.exe
c:\Windows\WinSxS\wow64_microsoft-windows-t..acyinkingcomponents_31bf3856ad364e35_10.0.19041.1_none_023783a15d5391a7\pipanel.exe

C:\Users\Owner>

GNAT was the last AdaCore/Libre build that included the GPS IDE (I
believe AdaCore still does periodic source code releases of GPS to Linux,
putting the effort to get it working on the Linux distributions -- but that
doesn't help for Windows). Mu is an overly simplistic Python editor pushed
by AdaFruit as it is CircuitPython board-aware. MBlock is a graphical
(drag&drop code templates, fill in any parameters) which I have for an
Arduino-powered robot vehicle.

NO pip*.exe anywhere for Python 3.10 -- and as I stated earlier in the
thread, I even ran the Python Org installer python-3.10.11-amd64.exe in
/repair/ mode; though if that just spawns off ensurepip the result does not
repair anything, as ensurepip finds the library module valid. (Maybe I
should rename the module to junk, and try again? *)

C:\Users\Owner>dir c:\p*
Volume in drive C is Sys_OS
Volume Serial Number is B650-6F92

Directory of c:\

12/07/2019 05:14 AM <DIR> PerfLogs
05/16/2023 04:37 PM <DIR> Program Files
05/16/2023 04:37 PM <DIR> Program Files (x86)
04/26/2023 03:16 PM <DIR> ProgramData
01/01/2017 04:28 PM <DIR> PSFONTS
02/11/2020 02:50 PM <DIR> PSFONTS_Converted
06/08/2023 03:01 PM <DIR> Python310
0 File(s) 0 bytes
7 Dir(s) 1,881,417,326,592 bytes free

*****************************
* What a pain... Just renaming Lib\site-packages\pip =>
Lib\site-packages\pip-junk (and similar for the dist-info file) still had
ensurepip locating it. I had to /delete/ those files completely before
ensurepip would do any processing.

C:\Users\Owner>python -m ensurepip
Looking in links: c:\Users\Owner\AppData\Local\Temp\tmpfof5ikfr
Requirement already satisfied: setuptools in c:\python310\lib\site-packages
(67.6.1)
Requirement already satisfied: pip in c:\python310\lib\site-packages (junk)

C:\Users\Owner>python -m ensurepip
Looking in links: c:\Users\Owner\AppData\Local\Temp\tmpwtielpq_
Requirement already satisfied: setuptools in c:\python310\lib\site-packages
(67.6.1)
Processing
c:\users\owner\appdata\local\temp\tmpwtielpq_\pip-23.0.1-py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-23.0.1

That finally installed

C:\Users\Owner>where pip*
C:\Python310\Scripts\pip3.10.exe
C:\Python310\Scripts\pip3.exe

(NO pip.exe, however).

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor