IBM Power Connect, learn, share, and engage with IBMPower. Join / Log in
My client has specific requirements for running multiple python application on different versions. So, they would like to maintain different python binaries for each application. So, when upgrading any python of any application will not conflict with python used by other application, for example
Python 3.11.6 - used by App APython 3.11.5 - used by App BPython 3.9.18 - used by App CPython 3.8.18 - used by App D
And all above are running in the same servers. Are we able to do that?
Maintaining multiple versions on the same AIX (Advanced Interactive eXecutive) server involves managing different copies or releases of software or applications. Here's a simple explanation:
Directories or Folders:
Example: Suppose you have a software called "MyApp" with two versions, 1.0 and 2.0.
Create directories: /opt/MyApp/Version_1.0 and /opt/MyApp/Version_2.0.
Install version 1.0 in /opt/MyApp/Version_1.0 and version 2.0 in /opt/MyApp/Version_2.0.
Use environment variables or configuration settings to switch between versions if needed.
This way, you can have multiple versions coexisting on the same AIX server without interfering with each other. It's especially useful for testing, development, or scenarios where different applications or users require specific software versions.
Soniya gave one approach. There are various ways in Python to create "virtual environments" that may help here. Look into pipx as a more programmatic way to do what you want.