delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/10/07/09:47:55

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 597DlsF33649034
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 597DlsF33649034
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=SA1HxZSR
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BABCD3858C2A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1759844872;
bh=GO7AWjDMpRcMvGm8hhNBBRjKREgerDTMPi9JyKjhjQU=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=SA1HxZSRwVRah4LO1B8gYWb6DgP52co20LqyGBFkMCnZ3+XEt2Iw27q+mzc6CbELI
mEQEjHfLdUcIJBUseCVZ3MyjdU75BqB4rm5rUU9u4ZJy7mvGkxnLtJjaFuE/jG3tcy
kMiPJ+Vx9dwMkA90Z3OHaAukOe5gjIZdEvjdDdm8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 70A4E3858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 70A4E3858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759844813; cv=none;
b=H2mnPfvGaFRVGKa8J4PZ87eUv30ZeXvxfjzM4cyrRgMe/5qA6y2uXrsDYSDMvxQyg6jJMffjhKX5Lw5/x1SbNEiBsb/e3VH/6GFyfMK3FrELz3VcED7tObHrUblV0ciot/K/vAikMExMEtxe66TOoWATeDoOi1zr5ZM8fhZ/810=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1759844813; c=relaxed/simple;
bh=CbHZlV2Z3b54Ra/WWxsfQol9oAl3Qj7bKpOx9OlJC1U=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=luwJdZmZnELElbXKgSBdBgESG5PIs72Ylwy9Z2bix/81y108hQcy0CpYJnpB7CtkBoDww0mH7UnyjltB1W49tFcbCX/YGOu07NltF1wM5KHkY0oxNh7LYkfScm4ryTq34K1Dgq8hmLkPCuuc4XD8goS/sfPl4M6FC0QtnxGYnw4=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70A4E3858D1E
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1759844812; x=1760449612;
h=content-transfer-encoding:in-reply-to:from:content-language
:references:to:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=I/Vk6WwgzTmn3P/RhCapMf9jlSQrSkEI0UBxd4yOGc0=;
b=YOmZ2+Yvx+UQgJTPYYfmcnL213vof0xa/WXNUZP5XZq1KhA2Nsh1WsQFa7lqtb8zm0
Q64y1+/tg5sJL8bpG1EHkohBtU5wJYGQgv97T7o36zGV0G1ch2qrryTQmsHRLIkImA8V
Dh7wcuu1VG9lhNMtrKfTnWX6w2LgfbtDyTLVYupsV3sdxJkCNcSoZFT7TvhlGZMwVkvF
s1EenG3C6tUBQYYXrQWxOhVbsfzJ56hrEco7//A+C2+oQmlniAgrlwRA8XIkThav+xJE
Rya7VaPMxRFBt/q5GtKw+bfzuyMrocMYAwkAH62j9sy/SQ4YhcLy0fwbS0kEcGuRCbYA
6RAw==
X-Gm-Message-State: AOJu0YwFkJA24Y6R6ZMbt5RynZ6a27hCMHAH6gdKbkYo8thi4P/yUsCt
JL9Jf/UsTVaxMFxkT8az5LYsIfHD+gb+mATleNZJ44GiX4FDuLyJE7qXeru8Ng==
X-Gm-Gg: ASbGnct/zn5f3JxEIkg8+dnhQ/l2mTb4Hnf+LvbITdQTZ8Z82b8HLAMgf0tiPBKqUDB
QXNuQZd/gLnoXmSQZH6QNj4ycrhAbfMznk/Y1L7InYIoDUlwGKEDxRgro1IptcqWPj7T+PcPe5V
CRlsfF7TZo6/PbHOEkpIL3cjSpy8/3bLgDlauZkMdZolsICln7zxVpj6PHWfUEFzImuenXSfVTT
QaMDUxu0YHH+BU7U3sx6SczOZ+J4FJGcJPJPnjOU3mWVnquGynqC/1jFlIY+XiV6/RN5yhMtHaW
r/5Fat+vyEaOiZ9gJW4gllxKWnCR7shYz2aYC68NLkpZhs3hZ4MOrkcqCSKKczPsXFzQqSVRjkH
d9S2anJkL0C0jPUnEiNfFuelkxbhJAhSuJzotX35u4nC64XI0hKyBV/ndYony86lxwJih5KBTbo
GYPkVJsNP8/D/vxlSNX50EaqqX7uLdlI4=
X-Google-Smtp-Source: AGHT+IEipJeu3NFIpTi3FNN9GsKGYtIt5K0scpWp/mM32xzOdSsTSmMK9EAg+sxhKHlpZSXOI5xztA==
X-Received: by 2002:a05:6402:2110:b0:637:e2b8:605b with SMTP id
4fb4d7f45d1cf-639346c7b36mr17069493a12.5.1759844811704;
Tue, 07 Oct 2025 06:46:51 -0700 (PDT)
Message-ID: <d2c4b0b3-475a-4a80-ab36-4b0d2d30d130@gmail.com>
Date: Tue, 7 Oct 2025 15:46:50 +0200
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>
In-Reply-To: <CAMpi71mcm+aOTqZxeUUFAiBk02OXEO32L0av1PKeXnwtynv-Xw@mail.gmail.com>
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: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
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>

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

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