Use pip or conda or whatever to install your package.
If you find that a certain version of Python is not compatible with a specific version of a library, you can make a virtualenvironment with a specific python version that is compatible with the package, activate the virtual environment, and then install your package.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…