rt. Use cryptography instead, pycrypto is abandoned and not maintained. and the pycrypto is hard to build throuth. https://github.com/pycrypto/pycrypto/issues/303 https://github.com/pycrypto/pycrypto/issues/221