@waterman are you allowed to use tools like miniforge, maybe limited to conda-forge so not as to come into conflict with Anaconda’s policy?
Then you could try and form a setup of packages that would use Python 3.11 and the necessary other packages from knime-python-base and then add your library. Which is this BTW?
You might use conda on a separate machine to let it figure out the exact combination and then install the packages and versions with pip maybe if you definitely cannot use any form of conda.
KNIME and Python — Setting up and managing Conda environments