From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9504D139360 for ; Sun, 8 Aug 2021 17:06:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E35BE0922; Sun, 8 Aug 2021 17:06:28 +0000 (UTC) Received: from box.mail.meme.technology (box.mail.meme.technology [205.185.124.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44D72E08FE for ; Sun, 8 Aug 2021 17:06:26 +0000 (UTC) Received: from authenticated-user (box.mail.meme.technology [205.185.124.102]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by box.mail.meme.technology (Postfix) with ESMTPSA id F06C2BC466 for ; Sun, 8 Aug 2021 10:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.meme.technology; s=mail; t=1628442385; bh=RkDSODD+EXGMCd7iKs6n7dYczfPyCV0ZVWK7yVcj6Kw=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Emjqe9P1rqyvqQhnP1WmLZSqLUl6DNHP+Vmblcmgngq4lk1WBP5VWSSbpAWb4l+T7 8DKJUU1KQe/m/cCKqAWK5GMLorlo2XJWW6irImheSxrPSQw/pOpHaugjxL4N9O3j/F UnpYYQD7ib5NSh6W8YqJ9chp/Why0lEiZcoz5x0pr28EtpyfEqvVk1mhI0N7IgD6S2 fjZJu9fuZRLRnsUyg8TlIUy71x5tFaxCz0GB7dxNxK0zhlq/w9KE9IAyrkk90c4Wjt n/MQOGU9iHWh77FXCO8ZmaAraF6zs6M3Bsdh4uwgHRWc6rt2dD9JZRQMvERiOVkCLK ddpkjZktICQnQ== Subject: Re: [gentoo-user] python2 problem To: gentoo-user@lists.gentoo.org References: <3adcdee4-b353-b895-aab2-591ffd3cd882@iinet.net.au> From: cal Message-ID: Date: Sun, 8 Aug 2021 10:06:23 -0700 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <3adcdee4-b353-b895-aab2-591ffd3cd882@iinet.net.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: 7654458e-abc7-4ddd-b6d3-a249ad457a7a X-Archives-Hash: 5398af759e87e8353b871f7fe4e9d491 On 8/8/21 5:12 AM, William Kenworthy wrote: > Hi, I am trying to install the ssspsk python module using pip for python > 2 (for tuya-convert) but its not working. > > I have installed python 2.7 from portage and followed the wiki (set > python_targets, emerge -NuDv etc.), however pip seems to only know how > to install for python3. > > For python 2.7 do I need to go completely manual for installation? > > BillK > Gentoo's dev-lang/python package configures Python --without-ensurepip, meaning that pip will not be installed alongside this package by default. There is a separate dev-python/pip package providing pip, but it appears this package only supports Python 3 targets (which is reasonable as 2.7 is no longer supported upstream). If you *really* need Python 2.7, you could modify the ebuild of dev-lang/python-2.7 to enable --with-ensurepip, or you could try to make the dev-python/pip package support the python2_7 target, or you could download the source from python.org and configure/build it yourself into a separate directory. However, it is probably worth first checking if there is a release of the software you want to use that supports Python 3 instead. cal