How to control python package versions?

sc0v0ne - Feb 22 - - Dev Community

Guys, I have a question, how can you control the versions of Python packages for different Python versions in software development at work?

Example:

I have the following packages

VersionPython 3.8
A==1.1.2
B==2.3.1

I have software using these packages.

But I need to use this software for Python 3.10, but package A is not compatible with this version of Python 3.10, because it was updated to version A==2.3.1, it is causing incompatibility with version 3.8.

What would be the ways and tools to be able to test and verify the compatibility of versions, without having to affect the software's functionalities?

. . . . . . . . . . . . . . . . . . . .