The stable release of tfx supports Python versions >=3.9,<3.11. It is not compatible with Python 3.11. You can install this package using any of the supported Python versions (3.9 - 3.10). See Compatible versions.