* Re: [gentoo-user] python2 problem
2021-08-08 12:12 [gentoo-user] python2 problem William Kenworthy
@ 2021-08-08 17:06 ` cal
2021-08-08 17:27 ` Bill Kenworthy
2021-08-08 17:23 ` Bill Kenworthy
2021-08-08 18:38 ` Michael Dinon
2 siblings, 1 reply; 5+ messages in thread
From: cal @ 2021-08-08 17:06 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] python2 problem
2021-08-08 17:06 ` cal
@ 2021-08-08 17:27 ` Bill Kenworthy
0 siblings, 0 replies; 5+ messages in thread
From: Bill Kenworthy @ 2021-08-08 17:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
On 9 August 2021 1:06:23 am AWST, cal <cal@mail.meme.technology> wrote:
>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
>
Thanks, I'll look into this.
BillK
[-- Attachment #2: Type: text/html, Size: 1804 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] python2 problem
2021-08-08 12:12 [gentoo-user] python2 problem William Kenworthy
2021-08-08 17:06 ` cal
@ 2021-08-08 17:23 ` Bill Kenworthy
2021-08-08 18:38 ` Michael Dinon
2 siblings, 0 replies; 5+ messages in thread
From: Bill Kenworthy @ 2021-08-08 17:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]
Sorry, so many typos, here it is again :(
Hi, I am trying to install the sslpsk python module using pip for python (for tuya-convert) but its not working - python3 works, python2 doesn't. It was working a few months back on a different system.
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 using old packages?
BillK
On 8 August 2021 8:12:26 pm AWST, William Kenworthy <billk@iinet.net.au> 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
>
>
>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[-- Attachment #2: Type: text/html, Size: 1423 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] python2 problem
2021-08-08 12:12 [gentoo-user] python2 problem William Kenworthy
2021-08-08 17:06 ` cal
2021-08-08 17:23 ` Bill Kenworthy
@ 2021-08-08 18:38 ` Michael Dinon
2 siblings, 0 replies; 5+ messages in thread
From: Michael Dinon @ 2021-08-08 18:38 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
On Sunday, August 8, 2021, William Kenworthy <billk@iinet.net.au> 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
>
>
>
>
--
Kind regards,
Mike
[-- Attachment #2: Type: text/html, Size: 750 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread