AIX

 View Only
  • 1.  Python3 shows wrong version

    Posted Tue April 19, 2022 03:17 PM
    Hi, 
    I have installed python3.9-3.9.6-1.ppc using yum. However, when I am typing python3 --version, it is showing me 
    python3 --version
    Python 3.7.12
    Also,
    # yum install python3.9
    Setting up Install Process
    Package python3.9-3.9.6-1.ppc already installed and latest version
    Nothing to do


    Kindly help fixing the issue. 

    Thanks

    ------------------------------
    Richard Lynch
    ------------------------------


  • 2.  RE: Python3 shows wrong version

    Posted Tue April 19, 2022 05:11 PM

    You probably need to create a fresh soft link ,

    Check where you have installed the latest in /opt/freeware/bin/pythonxxx ?

    Multiple python  versions can be installed on same server .. first go to he /opt/freeware/bin/ pyton3.xx      and execute locally the version command there .. it should show the right version .

    If you find the right version then you can create soft link of /opt/freeware/xxx/xxx to /usr/bin/python3 etc ...

     

    :/root# ls -l /usr/bin/python3

    lrwxrwxrwx    1 root     system           25 Jun 27 2021  /usr/bin/python3 -> /opt/freeware/bin/python3

    :/root# ls -l /usr/bin/python3

    lrwxrwxrwx    1 root     system           25 Jun 27 2021  /usr/bin/python3 -> /opt/freeware/bin/python3

     

    Thanks,

    Afzal Muhammad

     

    IBM Certified AIX System Administrator AIX 6.1

    IBM Certfied AIX System Administrator AIX 4.3

    IBM Certified WebSphere 6.0 Adminstrator

    Red Had Linux 7 Certified  System Administrator (RHCSA)

    Global pSeries platform services – AIX

    Ford Motor Company,  Dearborn Michigan

    United States of America

    Tel: Cell 1-704-492-0586

    Email: mafzal10@ford.com

     






  • 3.  RE: Python3 shows wrong version

    Posted Fri April 22, 2022 09:45 AM
    Thank you Afzal,

    Hi Richard,
    As Afzal mentioned you can install multiple python version on AIX from AIX toolbox. Right now python 3.7.x is default. 
    If you want to use python3.9 then you need to use /opt/freeware/bin/python3.9
    Or you can create a symlink. 


    ------------------------------
    SANKET RATHI
    ------------------------------