On linux this is most likely due to build/dev tools not install. This could also affect packages like psycopg2 or pycrypto... Install this dependencies should make the issue go say.
sudo apt install build-essential libpq-dev python3-dev