Puppy linux and python

(old)Puppy Linux Discussion Forum

I know that most puppy linux distributions have python available in one form or another and that there are GUI Designers like WxGlade , WxFormbuilder , Boa-Constructor ; however there’s no quick way of making these features available.

A perpetually updated sfs file or pet might be useful in this respect.

However , considering the incompatibility between versions of [ puppy] linux
a pretested distribution , with all of the requisite features might be a better approach.

Documentation , extensive examples , useful links , python2 and python3
configurations.

musher0 Posts: 14629 Joined: Mon 05 Jan 2009, 00:54 Location: Gatineau (Qc), Canada

#2 Post by musher0 » Tue 11 Jul 2017, 05:52

I’m no Python expert, but this sounds like quite a good idea.

If only to try out the excellent SunFlower file manager or to beef up your ROX!

Someone a couple of years back did exactly that, a Python-focused Pup, for
teaching purposes. I can’t find it in the forum at the moment, but I know it’s
there somewhere. I wonder what happened to it.

rockedge Posts: 1864 Joined: Wed 11 Apr 2012, 13:32 Location: Connecticut, United States Contact:

#3 Post by rockedge » Tue 11 Jul 2017, 15:17

I am running PYTHON 3.4.3 in Tahr 6.0.6 with IDLE 3.4.3 and as usual Glade as well. It wouldn’t be too hard to re-master a fresh tahr 6.0.6 with all the Python stuff included. I have most of the bells and whistles included.
So it is definitely possible to create a complete Python programming environment.

6502coder Posts: 677 Joined: Mon 23 Mar 2009, 18:07 Location: Western United States

#4 Post by 6502coder » Tue 11 Jul 2017, 21:51

Once you have a standard Python installed, adding 3rd-party bells and whistles is no harder in Puppy than it is on any other Linux (or for that matter Windows) setup. Puppy makes things harder with its half-assed, incomplete support for Python, but if you start with a standard commercial-grade Python package such as the free ones from ActiveState, you will have no problem adding on 3rd-party packages.

Moreover I’m philosophically opposed to the basic idea. The OP seems to want a bunch of bells and whistles preinstalled. Bundling a ton of stuff on the off chance that someone someday might be interested is not the Puppy way. The idea that someone would go to the trouble of not only assembling but «perpetually updating» such a sampler is all well and good, but wholly unrealistic.

The suggestion that both Python2 and Python3 be included is particularly hard to take. Anyone who knows Python knows that the changes in the language from version 2 to version 3 are very significant. You have to understand how and why you are using Python and make an either/or choice between version 2 or version 3. A veteran Python programmer might be able to manage hopping back and forth between 2 and 3, but for a novice the idea is absurd. A novice needs to pick one version and stick with it, at which point the presence of the other version prebundled is just bloat and a source of confusion.

more on this topic

#5 Post by nbah07 » Sun 01 Sep 2019, 22:18

The suggestion that both Python2 and Python3 be included is particularly hard to take. You have to understand how and why you are using Python and make an either/or choice between version 2 or version 3 . at which point the presence of the other version prebundled is just bloat and a source of confusion.

Is there python3 preinstalled puppies whereabouts? I have tried two remasters, anyway, soon my regular usage is requiring python3. Since it’s an 2008 notebook, I concluded unawares the better approach to step back and boot another build a chance. By the readings, I expected and used the low version kernels by their lean work. These should be overall guidelines to one might willing to voice in a consideration or instruction.

Источник

Puppy Linux Discussion Forum

I’m trying to install python3 to my laptop with bionicpup32.

I downloaded python3.x.x package through ppm, but after the installation, I can’t find python3 executable.

What can be the problem? Maybe there’s no 32-bit version of python3?

OscarTalks Posts: 486 Joined: Tue Jul 14, 2020 10:11 pm Location: London UK Has thanked: 1 time Been thanked: 155 times

Re: Python3 installation

Post by OscarTalks » Fri May 28, 2021 11:42 pm

Type which python3 in terminal and it should tell you where the python3 executable is. Normally /usr/bin/python3 but that will probably be a symlink to an executable with python3xxx (some more numbers on the end). If the symlink is missing you can create it. There is a 32bit version and PPM should have told you if the installation was successful or not.

EDIT:- I just booted into a fresh BionicPup32 and installed python3-3.6.7-1 via PPM to test. The executable symlink for python3 is missing, but python3.6 is there in /usr/bin so just right click on that and select «Link» and name the created link as python3

Re: Python3 installation

Post by Bbllaaddee » Fri May 28, 2021 11:59 pm

Well, which python3 gives nothing..
And I searched in /usr/bin/ and there’s no python3.8 there.

If I «`ls | grep py«` in /usr/lib gives only those: dh_python2, pydoc, pydoc3.8 pygettext2.7 pygettext3.8 python python2.7 etc.

No actual interpreter there.

I installed it via ppm, package python3.8_3.8.0-3, installation went successful as was said by ppm.

OscarTalks Posts: 486 Joined: Tue Jul 14, 2020 10:11 pm Location: London UK Has thanked: 1 time Been thanked: 155 times

Re: Python3 installation

Post by OscarTalks » Sat May 29, 2021 12:03 am

Ah OK, so you installed the later version of python3 in which case the executable will be /usr/bin/python3.8 so just create the python3 symlink as a link to that. If it is not there that is strange, maybe try uninstalling and install the 3.6 package instead.

Источник

Puppy Linux Discussion Forum

Iv’e had some success running some basic python code on Raspup. I would like to add a module using pip. A search on PPM brings up python-pip_18.1-5 and it appears to be installed, however «python -m pip version» in terminal returns ~ usr//bin/python: No module named pip. Raspup has Python version 2.7.16 so pip needs to be bootstrapped but my attempts are not working.

Last edited by Flash on Mon Dec 06, 2021 9:56 pm, edited 1 time in total.
Reason: Original title: Python

snoring_cat Posts: 206 Joined: Tue Sep 21, 2021 3:40 pm Location: Earth Has thanked: 24 times Been thanked: 45 times

Re: How to add pip to Python?

Post by snoring_cat » Tue Dec 07, 2021 2:11 am

pip should be able to be run by itself, without having to start it with python. Below is an example of it being used on Puppy Linux Fossa 64

pip --version pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8) pip install socks Collecting socks Downloading socks-0.tar.gz (618 bytes) Building wheels for collected packages: socks Building wheel for socks (setup.py) . done Created wheel for socks: filename=socks-0-py3-none-any.whl size=995 sha256=1215fe95ba42239a60b25c930370bce2c5d570d8fbb11876ca8a82c937ded348 Stored in directory: /root/.cache/pip/wheels/f4/d2/15/1266e76101e7deac862456ded4c0247b676c5f5168e03bab26 Successfully built socks Installing collected packages: socks Successfully installed socks-0 

Источник

Читайте также:  Html colors and shades
Оцените статью