Installing segment-analytics-python 2.3.0 and importing the client failed because the package required PyJWT at runtime but did not declare it in setup.py, so a fresh install was missing jwt. The maintainer acknowledged the packaging mistake and cut a new release declaring the dependency. Upgrade: pip install -U segment-analytics-python (anything after 2.3.0) and the import works out of the box.