The build fails because PyO3 v0.20.3, a dependency used by tiktoken, supports Python versions only up to 3.12. Your system uses Python 3.13, which is newer than PyO3 ...
I'm following the steps in this guide to install the cli on MacOS as we didn't want to depend on brew. It works well in most scenarios, but it fails when using python ...