Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Python 3.9.24 environment problem

    Posted yesterday

    Hello,

    I was using python 3.9 in a venv with fileset python3.9.base 3.9.23.0 installed. I installed version 3.9.24.0 of the fileset and my python venv is not working anymore. Links /usr/bin/python3 and /usr/opt/python3/bin/python3 has disapeared.

    Is it a normal behaviour of installation of version 3.9.24 ? Can I recreate the links safely ?

    Regards,

    Marc Baguelin



    ------------------------------
    Marc Baguelin
    ------------------------------


  • 2.  RE: Python 3.9.24 environment problem

    Posted 23 hours ago

    From fileset python3.9.base 3.9.23.1 onwards, the symlinks are removed as python3.9 went out of support recently. This is to make python3.11 (python3.11.base 3.11.13.1) as the default python3. 

    # cat /usr/opt/python3/python3.9_README | grep "3.9.23.1" -A 3 
    From 3.9.23.1 fileset onwards, python3.9 is not the default python3.
    python3.11 is the default python3 now (from python3.11.base 3.11.13.1
    fileset onwards).

    --
    3.9.23.1
    ========
        - No more the default python3 (symlinks for python3 and other binaries removed)


    # cat /usr/opt/python3/python3.11_README | grep "3.11.13.1" -A 3
    3.11.13.1
    =========
         - Make python3.11 as the default python3



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



  • 3.  RE: Python 3.9.24 environment problem

    Posted 23 hours ago

    Hello Ayappan,

    Thank you for you quick answer. So I understand that recreating the links is not a good idea, I shall install Python 3.11.

    After installing Python 3.11, is there a way to update existing venv or is it necessary to recreate them ?

    Regards,

    Marc Baguelin



    ------------------------------
    Marc Baguelin
    ------------------------------



  • 4.  RE: Python 3.9.24 environment problem

    Posted 22 hours ago

    We have to recreate the venv once again as this is a different python major version. Also pip is not shipped with python3.11. So one has to create a venv using "--without-pip" option. 
    python3.11 -m venv <dir> --without-pip
    These info are available at /usr/opt/python3/python3.11_README file 



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