Werk #14799: pip3 command

Component Site management
Title pip3 command
Date Mar 9, 2023
Checkmk Version 2.3.0b1 2.2.0b1 2.1.0p25 2.0.0p35
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Affected Editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p25 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p35 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This regression exists since 2.1.0p19 and broke the pip3 command due to a wrong shebang.

OMD[stable_p20]:~$ pip3
bash: /omd/sites/stable_p20/bin/pip3: /bin/python: bad interpreter: No such file or directory

As of Werk 14792, a workaround was to use pip as a module. Please note that you would need to specify the installation target if you want the mkp tool to find your local packages:

OMD[stable_p21]:~$ python3 -m pip install --target local/lib/python3/ cx_Oracle
Collecting cx_Oracle
...
Installing collected packages: cx_Oracle
Successfully installed cx_Oracle-8.3.0

With this werk, pip3 can be used again which automatically sets the installation target to the correct folder.

To the list of all Werks