AllThingsTalk Python SDK is a Python 3 library, so make sure that you have Python 3 installed.
This will install the SDK without examples
sudo pip3 install allthingstalk
If you want the complete repository, including all examples, you can clone it to your device. Make sure to install the package afterwards with pip3 install .