【Linux】 【Ubuntu】【Python3】ubuntsuでpip installしたら「error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1」と出た

1 |
pip3 install -U psutil |
1 |
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 |
python3-dev
が必要な模様。3系じゃなければpython-dev
で
1 |
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev |