AIX Open Source

 View Only
  • 1.  Python 3.9 Setuptools issue

    Posted Mon September 25, 2023 03:36 PM

    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

    1. 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
    2. 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
    3. 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
    ------------------------------


  • 2.  RE: Python 3.9 Setuptools issue

    Posted Tue September 26, 2023 11:33 AM

    Hi Ranjit,

    Can you please help on this?

    Thanks

    Mi



    ------------------------------
    Mi Wang
    ------------------------------



  • 3.  RE: Python 3.9 Setuptools issue

    Posted Tue September 26, 2023 11:39 AM
    Edited by Ayappan P Tue September 26, 2023 11:41 AM

    What is the exact command you invoked ? Please share it always. Without that , no one can't tell what is happening. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 4.  RE: Python 3.9 Setuptools issue

    Posted Tue September 26, 2023 12:22 PM

    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
    ------------------------------



  • 5.  RE: Python 3.9 Setuptools issue

    Posted Tue September 26, 2023 12:35 PM

    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
    ------------------------------