Re: [gentoo-user] python2 problem

2021-08-08 Thread Michael Dinon
On Sunday, August 8, 2021, 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
>
>
>
>

-- 
Kind regards,
Mike


Re: [gentoo-user] python2 problem

2021-08-08 Thread Bill Kenworthy


On 9 August 2021 1:06:23 am AWST, cal  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


Re: [gentoo-user] python2 problem

2021-08-08 Thread Bill Kenworthy
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  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.

Re: [gentoo-user] python2 problem

2021-08-08 Thread cal
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