delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/10/07/14:34:01

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 597IY03k3810697
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 597IY03k3810697
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=up9M/6M8
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95F54385087E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1759862038;
bh=u0S3EX3Gi1+5R2SzB/kCUkJ1d8CFZj+IfSE975ADe+w=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=up9M/6M8OEDVuLdI5SwSvNcFAdll8SsJ71bzrerPMLgjzwNwO1nz19LCJ+VL1yAyP
luNlOv3pdd7mCWIhn2QYA8hZnpeCy4HXwr0uRd8hIKG2Q5MivsJaKyRqNmAFxIpbgj
THjGcnZ8AERCbc06xj6xL3Z5l4nVQ4qVAJuB6UCc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9CCAA3858401
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9CCAA3858401
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759862013; cv=none;
b=GJ8M4CWecAtejWiliF4os7wFoNep9WC5P5Drszwc4ug5+2/cY1B0aAqU6qbiJyjZGQ+ijss7MslL7P6NkLJ/b65z+dgNREWo5QYwSbjR7X4UWcauhJhTfJ8zZi/BUdeIagTkFT/y2Nz9E53GMypoESlJMTwMi18ud8c3wI2LA28=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1759862013; c=relaxed/simple;
bh=3IW11WnJ6IPgdW1kVd4YB0pYKd4WJ9kn2nX/744oVRM=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=h+YYbp17rKJPMm3AreIRQcCGOex3R/EbYi9f1dNs6GvCihDudF8qyZBQZQf+mAwPePAcX1H+Fh4dprAiaArcudCSge3nXwtRNr/QgIXy2EpHvUCiV4cf/owssvRo+9MqOD+sq/vOcOSQqfiTcJ5iw/S6Vq+6dBYlU/IPfy1ZKs8=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CCAA3858401
Message-ID: <d212ee33-e651-48dd-b756-20916744be31@SystematicSW.ab.ca>
Date: Tue, 7 Oct 2025 12:33:30 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: C:\cygwin64\bin\python3 doesn't work from cmd
To: cygwin AT cygwin DOT com
References: <CAMpi71mcm+aOTqZxeUUFAiBk02OXEO32L0av1PKeXnwtynv-Xw AT mail DOT gmail DOT com>
<d2c4b0b3-475a-4a80-ab36-4b0d2d30d130 AT gmail DOT com>
<CA+1jF5oHRP82yDUkamd0=Dv33BcRR7=nd9vQ=zSZ5-_u_OfiYg AT mail DOT gmail DOT com>
<56ae1349-bb9a-47a5-9824-85bdcf0f0259 AT towo DOT net>
Organization: Systematic Software
In-Reply-To: <56ae1349-bb9a-47a5-9824-85bdcf0f0259@towo.net>
X-Stat-Signature: nujfs8ej479cw31apqb45y6ghzmgkn3w
X-Rspamd-Server: rspamout03
X-Rspamd-Queue-Id: C3F7F2000E
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX18ZpKX/Pweb+Hp5ey8B6Kk0QkZCTTYuP2c=
X-HE-Tag: 1759862011-555673
X-HE-Meta: U2FsdGVkX18buSXPu8N7uGZMNwjlsE+UJNh8bwxfjRIYXWfosqzSqXxL+kdsxcPeRyQW5/asUbpkG4fszpB8j8zGB/x2XWKoYgKhlcmesMRdunoKF2tGcaeTGYdCeaf7OEjYOWlPA4TZgxZAxKtqNWMlrUypRN8FC0dQhUDri7fEkVkebJ+6zTgwZdFj6VsABoXBK0TSfEdUK50juRbKV9+NqBEV/smBEMc9uZpBc99ERYcXEbKQp+vXpegMpL9jHpfnJ6ruTZXbYjam6NmL3jDp5Vof3syaaGOyykB0aQw10ryz4MIVomBiwy65H91C2lwc8fgQjExwKwHuaO88B5/gTuTDxk4vsKMlcb5kaAZ2kpv+JuCAao3x1RmeZ8Cm/6Uqo+QSUo62atZIf2TxCg==
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 597IY03k3810697

On 2025-10-07 07:59, Thomas Wolff via Cygwin wrote:
> 
> Am 07.10.2025 um 15:51 schrieb Aurélien Couderc via Cygwin:
>> On Tue, Oct 7, 2025 at 3:47 PM Marco Atzeri via Cygwin
>> <cygwin AT cygwin DOT com> wrote:
>>> On 07/10/2025 14:17, gamer 191 via Cygwin wrote:
>>>> Hi,
>>>> I noticed that C:\cygwin64\bin\python3 doesn't work if I invoke it from
>>>> command prompt, likely because it doesn't have the .exe extension. It works
>>>> if I create a copy named python3.exe.
>>>> Kind regards,
>>>> gamer191
>>>>
>>> Hi Gamer
>>>
>>> python3 is a Cygwin link managed by alternatives and NOT understood by
>>> command prompt.
>>>
>>>
>>> $ ls -l python3
>>> lrwxrwxrwx 1 marco Administrators 25 May 21  2023 python3 ->
>>> /etc/alternatives/python3
>>>
>>> $ alternatives --display python3
>>> python3 - status is auto.
>>>    link currently points to /usr/bin/python3.9
>>> /usr/bin/python3.8 - priority 38
>>> /usr/bin/python3.9 - priority 39
>>> Current `best' version is /usr/bin/python3.9.
>>>
>>>   From CMD you need to invoke directly the relative python3.9.exe
>>>
>>> c:\cygwin64\bin>dir /A /S python3*.*
>>>    Volume in drive C is OS
>>>    Volume Serial Number is 2232-4AA9
>>>
>>>    Directory of c:\cygwin64\bin
>>>
>>> 21/05/2023  20:47                64 python3
>>> 21/05/2023  20:48                78 python3-config
>>> 10/03/2023  00:34             3,420 python3.8-config
>>> 10/03/2023  00:34             9,747 python3.8.exe
>>> 08/03/2023  23:52             3,048 python3.9-config
>>> 08/03/2023  23:53             9,747 python3.9.exe
>>>                  8 File(s)         38,879 bytes

>> Could the setup.exe Cygwin installer PLEASE get a GUI(!!) option to
>> install packages using native Windows symlinks? That would fix that
>> recurring problem.

It would not - some executables are scripts so Windows has no way to run them 
anyway without some Cygwin interface.

> It would also help, and not need such problematic reconfiguration, if ln -s did 
> set up a symlink as .exe if it points to a .exe, like:
> ln -s python3.9 /bin/pythonlink
> ls -l /bin/pythonlink*
> ... /bin/pythonlink.exe -> python3.9.exe
> Packages could also ensure this themselves with
> ln -s python3.9.exe /bin/pythonlink.exe

Then shell users may have to specify .exe on many things, including changing 
every script, none of which specify exe - no thanks!
Most of us just want a seamless POSIX experience, regardless of system, and be 
able to move scripts and sources from one to the other, and back.

Use a Cygwin terminal and/or shell, or deal with the incompatibilities, such as 
by creating your own *non-conflicting* native Windows symlinks including .exe:
if that breaks something - you have to deal with it - no one else!

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019