I assume you don't have internet access ( ie., access to pypi.org). That is the reason you are using --no-index & --find-links option.
Nowadays pip uses an isolated environment to build/install packages. So it doesn't matter whether setuptools is installed in the machine or not, it is always going to download setuptools from pypi or the --find-links path. So either you have to keep the setuptools bundle in --find-links path or use --no-build-isolation option in the pip install command.
------------------------------
Ayappan P
------------------------------
Original Message:
Sent: Tue September 26, 2023 12:21 PM
From: Mi Wang
Subject: Python 3.9 Setuptools issue
Hi Ayappan,
I am using the following commands (I just reuse the folder python3a and it has nothing to do with python 3.10):
python3 -m pip install --no-index --find-links=/usr/opt/python3a pyreadstat==1.2.3
python3 -m pip install --no-index --find-links=/usr/opt/python3a shap==0.42.1
python3 -m pip install --no-index --find-links=/usr/opt/python3a downloadutil==1.0.4
Thanks
Mi
------------------------------
Mi Wang
Original Message:
Sent: Tue September 26, 2023 11:39 AM
From: Ayappan P
Subject: Python 3.9 Setuptools issue
What is the exact command you invoked ? Please share it always. Without that , no one can't tell what is happening.
------------------------------
Ayappan P
Original Message:
Sent: Mon September 25, 2023 03:35 PM
From: Mi Wang
Subject: Python 3.9 Setuptools issue
Hi AIX Experts,
It seems the setuptools with our Python 3.9 eco system has some strange issue: when I tried to installed the following packages, I got the error messages complaining no available version setuptools. But our setuptools should be working as its version is 65.5.1. Can you please help?
Thanks
Mi
- Error message when installing pyreadstat:
ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none)
ERROR: No matching distribution found for setuptools - Error message when installing downloadutil:
ERROR: Could not find a version that satisfies the requirement setuptools>=42 (from versions: none)
ERROR: No matching distribution found for setuptools>=42
- Error message when installing shap:
ERROR: Could not find a version that satisfies the requirement setuptools>=61.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=61.0
/tmp: rpm -qa | grep -i python3.9 | grep -i setuptools
python3.9-setuptools-65.5.1-1.noarch
------------------------------
Mi Wang
------------------------------