Python3-3.9.10 installed on this Slackware64-14.2 desktop. Trying to run meson to build an application I'm told it's missing pkg_resources, which is part of setuptools. The command fails:
# pip install setuptools
bash: /usr/bin/pip: /usr/bin/python3.7: bad interpreter: No such file or directory
There is no python3.7 here:
# ls /usr/bin/python3.7
ls: cannot access '/usr/bin/python3.7': No such file or directory
How do I clean this up?
I'll download the installer from there.
It worked then because your path found a pip script. When there are more
than one Python installations, it can be unclear which one will get run, depending on how the path got set up after the last version was installed.
To check your version of Python, run
python3 -V
Then try to run pip:
python3.9 -m pip
If pip has not been installed (very possible on Linux), then you will need to get it. If python3.9 is not the system-upgraded version, then do an internet search for "linux python install pip". There's a pip website that has an installer for it. I never remember what it's called, so I always have to search for it myself.
If it appears that python3.9 *is* the version installed by the system, then use the system installer to install the right version of pip - as I said above, the package name can vary across distros.
Your message doesn't seem to have been copied to the mailing list. If you don't mind, it could help other people if you copied it and this reply to
the list.
On Sun, 16 Apr 2023, Rich Shepard wrote:
I'll download the installer from there.
But, I still cannot install the pkg_resources module that meson wants to start the build of pulseaudio-equalizer:
# pip install pkg_resources
ERROR: Could not find a version that satisfies the requirement
pkg_resources (from versions: none)
ERROR: No matching distribution found for pkg_resources
Rich
On Sun, 16 Apr 2023, Thomas Passin wrote:[snip]
It should have been installed with the upgrade to 3.9.10
If pip has not been installed (very possible on Linux), then you will
need to get it. If python3.9 is not the system-upgraded version, then
do an internet search for "linux python install pip". There's a pip
website that has an installer for it. I never remember what it's
called, so I always have to search for it myself.
https://www.redhat.com/sysadmin/install-python-pip-linux
I'll download the installer from ther.
Sorry, Rich, I've never dealt with this so someone else will have to give suggestions.
I would try to see if there are any versions available. It could be that meson says it needs version x but only version y > x is available. Pip
will quit but meson may very well work with the available version anyway.
So I would try to install pkg_resources on its own, and then see if the
meson build can succeed. No guarantees, but I've seen this work before. So python3.9 -m pip install --user pkg_resources
Or, to see what versions if any are available:
python3.9 -m pip install --user pkg_resources==
# NO spaces allowed before the "==".
On Sun, 16 Apr 2023, Thomas Passin wrote:
Slackware isn't as straight forward in it's management as other distros
(not standardized anyway).
That being said, if you start from python source ...
On 4/16/2023 4:42 PM, Rich Shepard wrote:[...]
Python3-3.9.10 installed on this Slackware64-14.2 desktop.
# pip install setuptools
bash: /usr/bin/pip: /usr/bin/python3.7: bad interpreter: No such file or directory
There is no python3.7 here:
# ls /usr/bin/python3.7
ls: cannot access '/usr/bin/python3.7': No such file or directory
How do I clean this up?
What is there to clean up?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 27:43:37 |
Calls: | 10,390 |
Calls today: | 1 |
Files: | 14,064 |
Messages: | 6,417,072 |