I assume there's repositories I need to add, but the thing is I have no clue. what or where to add. the first thing is I want to fix add user and then install python3. Anyone know how to either tell the cd ~/Downloads" Or whatever program to run or install the install-sh or Makefile.pre.in" Or whichever one, IDK which of these to use. this is for a Python 3.12.4 install folder, Or know which repository and just the right code to put into the LXTerminal to add it in and be able to install through apt install "Whatever Python3 or -Y Python3 etc.
How to install Python3 or equivalent?
Moderators: dimkr, Forum moderators
-
- Posts: 2418
- Joined: Wed Dec 30, 2020 6:14 pm
- Has thanked: 53 times
- Been thanked: 1200 times
Re: How do I get Python3 or equivilent to install on this!
Python is preinstalled. Go to the terminal, type python3
.
Re: How to install Python3 or equivalent?
~$ python3
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Ah so I did fix it after all. it gave me a blank message after I installed it I wasn't sure.
I still have a huge error message when I punch in sudo apt upgrade or even apt upgrade.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
adduser : Depends: passwd but it is not installable
apt-file : Depends: perl:any but it is not installable
binutils-x86-64-linux-gnu : Depends: zlib1g (>= 1:1.1.4) but it is not installable
blueman : Depends: python3 (< 3.12) but it is not installable
Depends: python3 (>= 3.11~) but it is not installable
Depends: python3:any but it is not installable
Depends: python3-gi (>= 3.27.2) but it is not installable
Depends: python3-cairo but it is not installable
Depends: python3-gi-cairo but it is not installable
Depends: polkitd but it is not installable
bluez : Depends: udev but it is not installable
command-not-found : Depends: python3-apt but it is not installable
Depends: python3:any but it is not installable
cpp-12 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
cups : Depends: poppler-utils but it is not installable
Depends: procps but it is not installable
cups-daemon : Depends: procps but it is not installable
Depends: ssl-cert but it is not installable
cups-filters : Depends: poppler-utils but it is not installable
cups-filters-core-drivers : Depends: poppler-utils but it is not installable
Depends: zlib1g (>= 1:1.1.4) but it is not installable
curl : Depends: zlib1g (>= 1:1.1.4) but it is not installable
dconf-service : Depends: procps but it is not installable
dkms : Depends: patch but it is not installable
dpkg : PreDepends: zlib1g (>= 1:1.1.4) but it is not installable
Depends: tar (>= 1.28-1) but it is not installable
dpkg-dev : Depends: perl:any but it is not installable
Depends: tar (>= 1.28-1) but it is not installable
Depends: xz-utils (>= 5.4.0) but it is not installable
Depends: patch (>= 2.7) but it is not installable
firefox-esr : Depends: zlib1g (>= 1:1.2.11.dfsg) but it is not installable
Depends: procps but it is not installable
flatpak : Depends: xdg-dbus-proxy (>= 0.1.0) but it is not installable
fonts-urw-base35 : Depends: xfonts-utils but it is not installable
foomatic-db-compressed-ppds : Depends: python3:any but it is not installable
Depends: xz-utils but it is not installable
fuse3 : Depends: sed (>= 4) but it is not installable
gcc-12 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
gdebi : Depends: python3:any (>= 3.3~) but it is not installable
Depends: python3-gi but it is not installable
Depends: policykit-1 but it is not installable
gdebi-core : Depends: python3:any (>= 3.3~) but it is not installable
Depends: python3-apt but it is not installable
Depends: python3-debian but it is not installable
gimp : Depends: xdg-utils but it is not installable
Depends: zlib1g (>= 1:1.1.4) but it is not installable
gimp-gmic : Depends: zlib1g (>= 1:1.1.4) but it is not installable
gimp-plugin-registry : Depends: python3 but it is not installable
Depends: xdg-utils but it is not installable
gnupg-utils : Depends: zlib1g (>= 1:1.1.4) but it is not installable
gpg : Depends: zlib1g (>= 1:1.1.4) but it is not installable
gpg-agent : Depends: pinentry-curses but it is not installable or
pinentry but it is not installable
gpgv : Depends: zlib1g (>= 1:1.1.4) but it is not installable
init-system-helpers : Depends: usrmerge but it is not installable or
usr-is-merged but it is not installable
initscripts : Depends: sysvinit-utils (>= 3.05-1) but it is not installable
Depends: sysv-rc but it is not installable or
file-rc but it is not installable or
openrc but it is not installable
keyboard-configuration : Depends: xkb-data (>= 2.35.1~) but it is not installable
Depends: xkb-data (< 2.35.1A) but it is not installable
libapt-pkg-perl : Depends: perl (>= 5.36.0-4) but it is not installable
Depends: perlapi-5.36.0 but it is not installable
libapt-pkg6.0 : Depends: zlib1g (>= 1:1.2.2.3) but it is not installable
libarchive13 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libavcodec59 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libavfilter8 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libavformat59 : Depends: zlib1g (>= 1:1.2.0.2) but it is not installable
libbinutils : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libblosc1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libcairo-script-interpreter2 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libcairo2 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libcanberra0 : Depends: sound-theme-freedesktop but it is not installable
libcfitsio10 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libctf-nobfd0 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libctf0 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libcups2 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libcurl3-gnutls : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libcurl4 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libdpkg-perl : Depends: perl:any but it is not installable
libdw1 : Depends: zlib1g (>= 1:1.2.2.3) but it is not installable
libelf1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libenchant-2-2 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libexiv2-27 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libfido2-1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libfile-find-rule-perl : Depends: perl:any but it is not installable
libfontenc1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libfreetype6 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libgdal32 : Depends: zlib1g (>= 1:1.2.2) but it is not installable
libgdcm3.0 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libgdk-pixbuf-2.0-0 : Depends: shared-mime-info but it is not installable
libgdk-pixbuf-xlib-2.0-0 : Depends: shared-mime-info but it is not installable
libgl1-mesa-dri : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libglib2.0-0 : Depends: zlib1g (>= 1:1.2.2) but it is not installable
libgme0 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libgmic1 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libgprofng0 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libgraphicsmagick-q16-3 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libgs10 : Depends: poppler-data but it is not installable
Depends: zlib1g (>= 1:1.2.0) but it is not installable
libgsf-1-114 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libgstreamer-plugins-base1.0-0 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libgtk-3-0 : Depends: shared-mime-info but it is not installable
libgtk2.0-0 : Depends: shared-mime-info but it is not installable
libgvc6 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libhdf4-0-alt : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libhdf5-103-1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libheif1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libical3 : Depends: tzdata but it is not installable
libice6 : Depends: x11-common but it is not installable
libkmlbase1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libllvm15 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
liblocale-gettext-perl : PreDepends: perl-base (>= 5.36.0-5) but it is not installable
PreDepends: perlapi-5.36.0 but it is not installable
libmagic1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libmariadb3 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libminizip1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libmng1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libmysofa1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libodbcinst2 : Depends: unixodbc-common (>= 2.3.11-2+deb12u1) but it is not installable
libogdi4.1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libopencv-core406 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libopenexr-3-1-30 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libopenmpt0 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libostree-1-1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libpaper1 : Depends: ucf (>= 0.28) but it is not installable
libpci3 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
Depends: pci.ids (>= 0.0~2019.11.10-2) but it is not installable
libpciaccess0 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libperl5.36 : Depends: zlib1g (>= 1:1.2.2.3) but it is not installable
Depends: perl-modules-5.36 (>= 5.36.0-7+deb12u1) but it is not installable
libpng16-16 : Depends: zlib1g (>= 1:1.2.11.dfsg) but it is not installable
libpoppler126 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libproj25 : Depends: proj-data (>= 9.1.1-1) but it is not installable
libqpdf29 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libqt5core5a : Depends: shared-mime-info but it is not installable
Depends: zlib1g (>= 1:1.1.4) but it is not installable
libqt5gui5 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libqt5network5 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libreadline8 : Depends: readline-common but it is not installable
libregexp-assemble-perl : Depends: perl:any but it is not installable
librtmp1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libset-scalar-perl : Depends: perl:any but it is not installable
libspatialite7 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libssh-gcrypt-4 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libssh2-1 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libtext-iconv-perl : Depends: perl-base (>= 5.36.0-4) but it is not installable
Depends: perlapi-5.36.0 but it is not installable
libtiff6 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libvte-2.91-0 : Depends: zlib1g (>= 1:1.2.0) but it is not installable
libwmf-0.2-7 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libwv-1.2-4 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libxapian30 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libxatracker2 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libxfont2 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
libxkbcommon0 : Depends: xkb-data but it is not installable
libxml2 : Depends: zlib1g (>= 1:1.2.3.3) but it is not installable
libxss1 : Depends: x11-common but it is not installable
libxtst6 : Depends: x11-common but it is not installable
libxvmc1 : Depends: x11-common but it is not installable
libzip4 : Depends: zlib1g (>= 1:1.1.4) but it is not installable
lsb-base : Depends: sysvinit-utils (>= 3.05-4~) but it is not installable
man-db : Depends: zlib1g (>= 1:1.1.4) but it is not installable
mesa-va-drivers : Depends: zlib1g (>= 1:1.1.4) but it is not installable
mesa-vulkan-drivers : Depends: python3:any but it is not installable or
python3-minimal:any but it is not installable
Depends: zlib1g (>= 1:1.1.4) but it is not installable
netpbm : Depends: zlib1g (>= 1:1.1.4) but it is not installable
ntpsec-ntpdig : Depends: python3 (>= 3.3) but it is not installable
Depends: python3-ntp (= 1.2.2+dfsg1-1+deb12u1) but it is not installable
openssh-client : Depends: passwd but it is not installable
Depends: zlib1g (>= 1:1.1.4) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
~$
The point being. I believe I have something upstream I need to install that is missing here first. Maybe it's 32-bit drivers, a quick fix someone told me is to install Steam, and uninstall "IF" you don't have any uses for it. As you know this Debian is not recommended for modern 3d gaming, but anyways now.
I tried to install Steam.deb just to see what it would do, it says I have broken dependencies.
I'm guessing I need to add certain repositories. Do you know what lists to add or have a thread somewhere around here I can read?
-
- Posts: 2418
- Joined: Wed Dec 30, 2020 6:14 pm
- Has thanked: 53 times
- Been thanked: 1200 times
Re: How to install Python3 or equivalent?
Running Python 3.12 on a Debian 12 based system is a very bad idea. It ships with 3.11, and everything is compatible with 3.11 but not necessarily with 3.12. Stable Debian releases get stability and security updates but don't get new versions, so you will never get updated to 3.12.
If you want 3.12, your best option is to find a newer distro that ships with 3.12.
Re: How to install Python3 or equivalent?
So that Python version is too recent and not adequate for the current Vanilla Dpup build out correct? in that case is there a quick downgrade command or auto correct for that? or something simple I can install and uninstall after one use?
Re: How to install Python3 or equivalent?
Yeah reading further I already have the correct python. So this isn't the package that is causing all these conflictions.
Re: How to install Python3 or equivalent?
I''m pretty sure this is the correct Puppy I'm looking for, and that the problem here is that, I have a broken Kernel or "package" that is a version that is either too recent, or just not for this Dpup here. I may need a repair kit I bet there is one somewhere do you know? I could google it myself alittle later I suppose.
Re: How to install Python3 or equivalent?
You really shouldn't replace system Python. Something you can do instead is install a different version just for your user with pyenv. (This includes the root user.) pyenv downloads, builds, and installs Python automatically. You only need to provide the build dependencies.
I have used pyenv to install Python 3.12.4 in live Vanilla Dpup 10.0.56 for x86-64. To install pyenv, follow the instructions in the pyenv readme for Debian and your shell (Bash, fish, etc.). Once you have installed pyenv and configured your shell to use it, you can make Python 3.12 or another version the default Python for you in that shell.
The following log shows that system Python is unaffected. (pyenv global
means the default for the user.)
Code: Select all
~$ pyenv install 3.12
Downloading Python-3.12.4.tar.xz...
-> https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tar.xz
Installing Python-3.12.4...
Installed Python-3.12.4 to /root/.pyenv/versions/3.12.4
~$ pyenv global 3.12
~$ python3
Python 3.12.4 (main, Jul 12 2024, 09:54:56) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
~$ /usr/bin/python3
Python 3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Re: How to install Python3 or equivalent?
So this should fix my error with Python here. Now to find the other bad strings or whatever in the list.
Re: How to install Python3 or equivalent?
~$ pyenv install 3.12
Command 'pyenv' not found, did you mean:
command 'p7env' from deb libnss3-tools
Try: apt install <deb name>
~$ p7env install 3.12
Command 'p7env' not found, but can be installed with:
apt install libnss3-tools
~$ apt install libnss3-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libnss3-tools
~$
I prob need a clean reinstall. unless you know another way to just revert to the correct OG Python version.
- rockedge
- Site Admin
- Posts: 6532
- Joined: Mon Dec 02, 2019 1:38 am
- Location: Connecticut,U.S.A.
- Has thanked: 2744 times
- Been thanked: 2619 times
- Contact:
Re: How to install Python3 or equivalent?
have you ever looked into using an ActiveState Python portable setup?
I have used these in various versions to have a clean full python installation on Puppy Linux
Re: How to install Python3 or equivalent?
So just download and run this and it will automatically fix everything? I'm going to hop back on this OS either later tonight or tomorrow
- rockedge
- Site Admin
- Posts: 6532
- Joined: Mon Dec 02, 2019 1:38 am
- Location: Connecticut,U.S.A.
- Has thanked: 2744 times
- Been thanked: 2619 times
- Contact:
Re: How to install Python3 or equivalent?
Download the version you want, and it's possible to add more modules later using pip
. Remove or rename the current Python and symlink the ActiveState Python from it's directory to /usr/bin
or the same location as the currently installed python.
ActiveState also allows for customized Python package with the modules added in prior to download.
Re: How to install Python3 or equivalent?
Step 4
Install packages from our trusted catalog.
Install a single package
state install <package-name>
This will install the recommended version of the package, to install a specific version use <package-name@2.1>
Install packages from a requirements file
See a list of supported file formats for each language in our documentation.
Okay, Would the correct <package-name>" here be Python-3.10.14-Linux-Ubuntu" ?
- rockedge
- Site Admin
- Posts: 6532
- Joined: Mon Dec 02, 2019 1:38 am
- Location: Connecticut,U.S.A.
- Has thanked: 2744 times
- Been thanked: 2619 times
- Contact:
Re: How to install Python3 or equivalent?
@Lordsyke I made a simple account, downloaded a basic python package then using pip installed what I needed.
I use X10 modules, remote motion sensors (for ZoneMinder) and all of the program code that makes the switches and auto triggers are in Python and PERL.
All of this was started on a Puppy Linux Bionic32 way back when, in Python 2.7. So I had to find a 2.7 that still was available. Now I've converted the code to Python 3+ and during this time I had a real problem installing python well enough to allow my code to work, hence the ActiveState portable python(s).
Now it's much better with NoblePup64 and the experimental F96-CE_5 that has the APT package manager onboard, to install a solid well equipped Python right from the Ubuntu repos.
All of the Puppy Linux variants that include the upstream distro's package manager like APT or XBPS are much easier to install a solid working Python3+
Re: How to install Python3 or equivalent?
This right here fixed my incorrect python install. Thank you!