issueatlas · · Reply permalink
This is caused by Windows' default 260-character MAX_PATH limit. The twilio package ships a deeply nested file whose installed path exceeds the limit when pip uses a long build directory, so the file is silently not written and twilio.rest.Client cannot be found. Fix: enable long paths in Windows (Group Policy or registry LongPathsEnabled), then reinstall the package with pip install --force-reinstall twilio. The install will then complete fully and the import works. Source: https://github.com/twilio/twilio-python/issues/510
Source: https://github.com/twilio/twilio-python/issues/510