Puppy linux install python

Puppy Linux Discussion Forum

1) Install Miniconda followed by a few additional packages using the conda tool. They don’t list any dependencies.

2) Install Activestate python followed by any additional packages using pip. However it needs Glibc 2.3 (& gcc4 forNumpy)

(PPM lists python2.7, I want python3)

Quirky7 only has glibc2.2 (&no gcc)

So it looks like miniconda is the way to go. Any suggestions or comments?

Both put everythong in one folder.
Would it be best to put the folder on the hd, outside the savefile?

PS
Using laptop i3 2.1 mhz and 4gb
The os. is on dvd and the savefile on hdd. The hdd still has windows7.
Im using april64-7.0.1F-uefi — the lightweight version of quirky7

rockedge Site Admin Posts: 4284 Joined: Mon Dec 02, 2019 1:38 am Location: Connecticut,U.S.A. Has thanked: 862 times Been thanked: 1246 times Contact:

Re: Installing Python 3

Post by rockedge » Mon Jan 04, 2021 1:26 pm

I use ActiveState’s python 3 packages. I use python for object / face detection and recognition. Along side ZoneMinder is the zmeventnotification server that provides the object detection. Also opencv is a big player and I use the python bindings for that. ZMES is written in PERL and PYTHON.
I have python 2.7 and python 3.8 running side by side. I have switches and controllers for X10 systems that I wrote for 2.7 and have not ported them to 3.XX yet. These turn lights on and off around the house and do wireless motion detection with X10 IR motion sensors.

I sometimes place the ActiveState python in /opt, but in most cases I place the python3 directory outside of the OS’s filesystem.

There are some symlinks that I add to integrate the ActiveState python into the Puppy Linux’s $PATH. I add the path to python3 in /etc/profile to adjust the environment variables.

wiak Posts: 2915 Joined: Tue Dec 03, 2019 6:10 am Location: Packing — big job Has thanked: 38 times Been thanked: 576 times Contact:

Re: Installing Python 3

Post by wiak » Mon Jan 04, 2021 2:49 pm

rockedge wrote: ↑ Mon Jan 04, 2021 1:26 pm

These turn lights on and off around the house and do wireless motion detection with X10 IR motion sensors.

I’d be scared to visit your house rockedge. It sounds too intelligent and I hope you don’t have any guns firing if it recognises my face like alone shining a light on it.

rockedge Site Admin Posts: 4284 Joined: Mon Dec 02, 2019 1:38 am Location: Connecticut,U.S.A. Has thanked: 862 times Been thanked: 1246 times Contact:

Re: Installing Python 3 on Quirky7 lite

Post by rockedge » Mon Jan 04, 2021 4:05 pm

Читайте также:  Mount space in linux

All the cameras really don’t «look» at anything with security in mind and my goal has been to detect mice and individually identify my cats by face recognition. I’ve been trying to get my basement camera to detect and identify a mouse in IR night vision since the basement is pitch black most of the time, for months now.

X10 is «ancient» technology making all the components dirt cheap which goes right along with the dumpster and free on the roadside computers I use to run this stuff.

Come to think of it I have some really high tech efficient and effective camera security systems running for no real reason at all other than it’s a fun hobby and to see if I can do it as well as the «pros».

Like running an OS with a Zoneminder system from a USB stick, a portable personal network camera security system on an 8 gig flash drive that also is a lean and mean network video recorder, complete from operating system to all the needed servers all on the stick. But who would use such a beast and is it at all practical? Probably very few and no, not really.

Источник

Puppy Linux Discussion Forum

Howdy,
Is there a way to install Python-3.10 without building it from the source?

Jasper Posts: 940 Joined: Wed Sep 07, 2022 1:20 pm Has thanked: 395 times Been thanked: 149 times

Re: How to install Python 3.10?

Post by Jasper » Wed Jan 18, 2023 6:40 am

You do not state which version of Puppy you are using.

In terminal you can find out which version you are currently using by entering

python3 —version

then you can use the command PIP to upgrade

Re: How to install Python 3.10?

Post by davidjackson » Wed Jan 18, 2023 6:01 pm

Thanks for your suggestions.
I am using bionicpup64-8.0-uefi.
Using ppm I upgraded Python-3.6 and pip2.
When I run: pip install python —upgrade
It sy that it is already installed?

What I want to do is install 3.10 without using the source code.

Jasper Posts: 940 Joined: Wed Sep 07, 2022 1:20 pm Has thanked: 395 times Been thanked: 149 times

Re: How to install Python 3.10?

Post by Jasper » Wed Jan 18, 2023 7:34 pm

@davidjackson enter this into terminal

pip install —upgrade —force-reinstall

Replace with python

Re: How to install Python 3.10?

Post by davidjackson » Wed Jan 18, 2023 9:44 pm

Thanks for you suggestion.
When I run:
python -m pip install —upgrade —force-reinstall python

I get the following error?
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/developme . -2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement python (from versions: none)
ERROR: No matching distribution found for python

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

Читайте также:  Kde connect linux install

Re: How to install Python 3.10?

Post by OscarTalks » Wed Jan 18, 2023 11:15 pm

davidjackson wrote: ↑ Wed Jan 18, 2023 6:01 pm

What I want to do is install 3.10 without using the source code.

I am curious to know:-
Why you need version 3.10 ?
Why do you not want to use the source code?

The official Ubuntu Bionic version of Python3 is 3.6 as you have already observed. I would expect the Package Manager to offer you this if it is not already included in the Puppy (BionicPup64) itself. Most things requiring Python3 should be OK with 3.6, but if you do need a later version such as 3.10, I would have thought that compiling the source code would be a relatively easy way of doing it.

The pip associated with python3 would be pip3 so you might need to use pip3 on the command line, but I have never tried to use pip3 to install an upgraded version of python3 itself. I would have thought it would need to download a compiled package from a repo somewhere (which may not be available), but I am really not sure about that.

Jasper Posts: 940 Joined: Wed Sep 07, 2022 1:20 pm Has thanked: 395 times Been thanked: 149 times

Re: How to install Python 3.10?

Post by Jasper » Thu Jan 19, 2023 10:15 am

The latest build is 3.11.1 and is pretty straightforward to compile.

Re: How to install Python 3.10?

Post by muggins » Thu Jan 19, 2023 6:56 pm

Python3.11.1 is available as an appimage here. https://github.com/niess/python-appimage/releases

Just need to download the relevant one, make it executable, then symlink to /usr/bin/python

Last edited by mikewalsh on Thu Jan 19, 2023 9:00 pm, edited 1 time in total.
Reason: Small modification to URL : now working.

mikewalsh Moderator Posts: 4762 Joined: Tue Dec 03, 2019 1:40 pm Location: King’s Lynn, UK Has thanked: 377 times Been thanked: 1291 times

Re: How to install Python 3.10?

Post by mikewalsh » Thu Jan 19, 2023 9:33 pm

The latest build is 3.11.1 and is pretty straightforward to compile.

Heh. I daresay it is. but being a dedicated fan of AppImages as I am, and with my compiling skills being as crap as they are, AND with muggins having provided a link to some AppImage builds like he has (cheers, muggins!), I know which option I’d be taking if I wanted the very newest version.

Don’t get me wrong, though; it’s good that we still have members that DO like doing this stuff. More power to you.

(It’s also good that we have folks like niess putting ever more AppImage builds like this together. )

Image

Re: How to install Python 3.10?

Post by davidjackson » Fri Jan 20, 2023 1:49 am

davidjackson wrote: ↑ Wed Jan 18, 2023 6:01 pm

What I want to do is install 3.10 without using the source code.

I am curious to know:-
Why you need version 3.10 ?
Why do you not want to use the source code?

I use 3.10 on Windows 10.
While ppm has Python-3.6 (which I installed), It doesn’t have pip3.
Why not compile from the source? First PL doesn’t come with GCC installed. Second, it seems to build a program from the source defeats the purpose of using PL in the first place. I might as well do a full install of Ubuntu.

Читайте также:  Linux arm operating system

The official Ubuntu Bionic version of Python3 is 3.6 as you have already observed. I would expect the Package Manager to offer you this if it is not already included in the Puppy (BionicPup64) itself. Most things requiring Python3 should be OK with 3.6, but if you do need a later version such as 3.10, I would have thought that compiling the source code would be a relatively easy way of doing it.

The pip associated with python3 would be pip3 so you might need to use pip3 on the command line, but I have never tried to use pip3 to install an upgraded version of python3 itself. I would have thought it would need to download a compiled package from a repo somewhere (which may not be available), but I am really not sure about that.

  • General Information
  • ↳ Before Installing Puppy, README FIRST
  • ↳ Getting Started and System Requirements
  • ↳ Internationalization
  • Distributions
  • ↳ Mainline Puppy Linux Distros
  • ↳ Bionic
  • ↳ Bookworm Pup64,
  • ↳ DPupStretch
  • ↳ F96-CE
  • ↳ Fossapup64
  • ↳ LxPupSc
  • ↳ Raspbian Buster
  • ↳ Slacko
  • ↳ SPups
  • ↳ Tahr
  • ↳ Vanilla Dpup
  • ↳ VoidPup
  • ↳ Xenial
  • ↳ Legacy
  • ↳ Kennel Linux
  • ↳ KLV-Airedale
  • ↳ KLA
  • ↳ KLU-jam
  • ↳ KLV-Spectr
  • ↳ KL-Dev_Work
  • ↳ How-To
  • ↳ Puppy Derivatives
  • ↳ Re-masters
  • ↳ Specialized
  • ↳ Built from woof-CE Recipes
  • ↳ F96CE-XFCE-FUSILLI
  • ↳ Distributions Archive
  • House Training
  • ↳ Announcements
  • ↳ Beginners Help
  • ↳ Users
  • ↳ Bug Reports
  • ↳ Instructional HOW-TO Section
  • ↳ Boot
  • ↳ Browsers
  • ↳ Compile
  • ↳ F96-CE+
  • ↳ File Management
  • ↳ Graphics/Video
  • ↳ Install
  • ↳ Network/Server
  • ↳ Repair
  • ↳ Security
  • ↳ Sounds
  • ↳ Tips & Tweaks
  • ↳ Upgrade/Backup
  • ↳ Utility
  • Advanced Topics
  • ↳ Additional Software (PETs, n’ stuff)
  • ↳ AppImages, Snaps and Flatpaks
  • ↳ Browsers and Internet
  • ↳ Business
  • ↳ Compiling
  • ↳ Desktop
  • ↳ Documents
  • ↳ Drivers
  • ↳ Educational
  • ↳ Emulation
  • ↳ Engineering/Science/Simulation
  • ↳ Eye Candy
  • ↳ Backgrounds
  • ↳ Filesystem
  • ↳ Games
  • ↳ Graphics
  • ↳ Java
  • ↳ Kernels
  • ↳ Multimedia
  • ↳ Network
  • ↳ Package Collections/Repositories
  • ↳ REQUESTS
  • ↳ Security/Privacy
  • ↳ System
  • ↳ Utilities
  • ↳ Virtualization
  • ↳ WINE
  • ↳ WINE 64 BIt
  • ↳ WINE 32 Bit
  • ↳ Puppy Projects
  • ↳ Cutting Edge
  • ↳ Hardware
  • ↳ Servers
  • ↳ woof-CE
  • ↳ Programming
  • ↳ Scripts
  • ↳ Development
  • Dog House
  • ↳ DebianDogs
  • ↳ UbuntuDogs
  • EasyOS
  • FatDog
  • ↳ FatDog64
  • ↳ Software
  • Dog Incubator
  • ↳ dCoreDog
  • ↳ Corepup
  • Puppy Linux International
  • ↳ Für deutschsprachige Anhänger
  • ↳ Italian Puppy Linux Forum
  • ↳ Pour les francophones
  • ↳ Usuarios de habla Hispana
  • ↳ Standard Chinese Language PET’s
  • ↳ Russian — Россия
  • Off-Topic Area
  • ↳ Security
  • ↳ Forum Organization & Structure Council
  • ↳ Other Distros
  • ↳ FirstRib (old archived info)
  • ↳ ForumLink
  • ↳ About
  • ↳ Announcements
  • ↳ HowTo
  • ↳ Software
  • ↳ Beginners
  • ↳ Users
  • ↳ Programming
  • ↳ Bug_Reports
  • ↳ Blog
  • ↳ Comparisons

Powered by phpBB® Forum Software © phpBB Limited

Источник

Оцените статью
Adblock
detector