DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57N11Zbs2494504 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 57N11Zbs2494504 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=PUtW/6LD X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8945D3858D26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1755910892; bh=c9tOq7TSd5HHPglGy16OKJ5qWRMUDKIZpn9LgXBBwF4=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=PUtW/6LDPOouyfEdMsptm1gKi+i6qkEiHqW6+40qmmqnSBQehAFu8x3riesNpW14Y 4/1g757AcNjAxF1uylhl5UgrxjJ5Hi+m73aEFEp3/fpMUfsTmn06CY1UTWDdczV9zj 59FtoYKvrY2cixNstY4Pz7faLfhV0iwVBxslF844= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8ABDD3858C74 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8ABDD3858C74 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755910852; cv=none; b=qBkwhe8NlGB61NG2817TNM37VQPR76FcI8A1s1gDhAzyjNM/PKwqHSf/xhQK62dVTMxoueEhvWIL9Y0oj3X34poRhrdt93vrruXuwu+/yI5hx7st9cnEsGHTLSH4oLiREKQXBhPh1FBItUyrPHBrU1qtKwAckCKcRZpQWYukens= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755910852; c=relaxed/simple; bh=G0Awl6ayAGOH8J4lggTanyqh8fgvwCaXzHVBdb92txE=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=WGPYoA4biQ1wkK1chDVIPI/kCOIgwCUiUUyqN2+Q4380F60jok9Y+8RXxG8pCXF8A5gdqaEVTMuPSTh7ccdf8xUZK9XPpF+ZrBy1i1THarAFU91uacwXJkIKNpOlJITcHHwLTKJAAgWMV3ocf0p3VsFmDj+TFgvQdT2BdIT5Wpk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8ABDD3858C74 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755910851; x=1756515651; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gRRHUpeJhZH6uteFN4EsYQqJCUnFn5uxUapfP4UAcJ8=; b=FfAKJq8pSNSodmNJiV7XQcEIO4lWMbD9LQp4C9rgKx8kqY00ssz3HtoPDr0uuHnkfO NqqrpNSxqMwBseRds6/Ax7yqU0n6qqQm0oXMmOQTZn3Df4vAOEGAyeF+xqI7JmNMAWrV xWZun0dVt6RBQXGqxobwH8/SZowpVX0ZYvDUqyNuj9BSYwCge3d6qHPiRXArGntrhTJv oMiwFFd4JjR9fY+3bzWtT1ntX0ZvXiotYwpTJpghYNDif2EhlR2lHb16za/3/YzR1CQq U/C9lfl6XRaTUiLOtSEeoo5rOM1GNtsxLXmtTcxKI4Bmk7hhSDJyr7cPcwcODQHcaf8n NDmw== X-Gm-Message-State: AOJu0YzVPqrCaRFhC9WPZ0U4+IyCpVosb7k5zKvfjyVYLtCn4kpPQaM5 iJRl0JJqXjmnbegfgCCfgUys1Go7DQDxbX7sAhpYh+FI1CJrQoLnqgO8oZSP1Y4WQ0We6pe6xau 1b+QdiFC2XlKSJWERaJEQXB8i93oRVvuJLNpJ X-Gm-Gg: ASbGncvjAY5ReHgouHQcKFxxocjZGwRgPQhw9ZctJxWHzIf60oJTUd/f6kHUQVM99n8 8wBXC2Z+PoMcW+cKGOzN0oGCgjTEfpxRx1Vg55ACl7ocxxxPdCCeVnlist34MJpxE3cHHBrxDqD uTzYIaC10JoWVoa521kJoR5OI5Ue6pgvp+SR4WsozQmSp3fWc6VKu9oQ3FeF0U2Dgrea6YpmUUC W1DgyR+EQn1km06VmKfVUUZ/7xz2+7IdZiIedxitg== X-Google-Smtp-Source: AGHT+IFRxr3BhgkZ6CPzz2fOFvPqNxsHPuj2DQw/6djTet1Za0UtytNIa6nBtKpypf2IHj3SijRzLMMEB5EJvNoN6Kk= X-Received: by 2002:a05:6402:518d:b0:61c:3c58:7128 with SMTP id 4fb4d7f45d1cf-61c3c587537mr73220a12.18.1755910850981; Fri, 22 Aug 2025 18:00:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 22 Aug 2025 19:00:39 -0600 X-Gm-Features: Ac12FXxRkQZTU1NQuaRjW7Pt33aHjQSNbSt9PXJ308-WREvFaradbtMWlxQ0RNg Message-ID: Subject: Re: Irritating artifacts of the python variety To: Soren Cc: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Doug Henderson via Cygwin Reply-To: Doug Henderson Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 57N11Zbs2494504 On Fri, Aug 22, 2025 at 10:39 AM Soren via Cygwin wrote: > > ... I didn't seem to have > "pip" installed (notice the "seem" por favor). So I started > setup-x86_64 and worked through the process of installing "pip". I am > working with python3 so I tried to select a "pip" that corresponded > with it. Python uses the "alternatives" system to allow multiple versions of python to be installed at the same time. Use "man alternatives" or "info alternatives" to learn about it, as there are several different "alternative" implementations used by different *NIX systems. Briefly, "alternatives" is located at "/usr/sbin/alternatives", because several of its functions required "root" or an elevated shell, e.g. started with "run as administrator". The "alternatives --list" command will show you which programs are configured to use "alternatives". On my machine, the output looks like: $ /usr/sbin/alternatives --list pip3 auto /usr/bin/pip3.12 pydoc3 auto /usr/bin/pydoc3.12 python manual /usr/bin/python3.12.exe python3 manual /usr/bin/python3.12.exe sphinx-apidoc auto /usr/bin/sphinx-apidoc-3.9 sphinx-autogen auto /usr/bin/sphinx-autogen-3.9 sphinx-build auto /usr/bin/sphinx-build-3.9 sphinx-quickstart auto /usr/bin/sphinx-quickstart-3.9 (This also shows that I have only installed the 3.9 version of the sphinx documentation creation suite, and not the 3.12 version.) The "alternatives pip3" and "alternatives python3" commands show me more info: $ /usr/sbin/alternatives --display pip3 pip3 - status is auto. link currently points to /usr/bin/pip3.12 /usr/bin/pip3.9 - priority 39 /usr/bin/pip3.12 - priority 312 Current `best' version is /usr/bin/pip3.12. $ /usr/sbin/alternatives --display python3 python3 - status is manual. link currently points to /usr/bin/python3.12.exe /usr/bin/python3.9 - priority 39 /usr/bin/python3.12 - priority 312 Current `best' version is /usr/bin/python3.12. These show that I have two versions installed, with the 3.12 versions configured as the defaults. I can still run the non-default versions by using the full file names, e.g. "python3.9". You are strongly advised to use the corresponding versions together, to avoid your confusion and Python errors. The root user (I, in an elevated shell) can change the default versions between 3.9 and 3.12 by using the interactive "alternatives --config python3" and "alternatives --config pip3" commands. As a regular user, I use the "python3" or just "python" and the "pip3" commands to run Python and Pip. You will have to create a virtual environment using e.g. "python -m venv venv" to use "pip install" as a regular user. Otherwise you will need to run "pip install" in an elevated shell. HTH Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- 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