Debian
sudo apt-get install gcc python-dev && sudo pip install twisted
CentOS
sudo yum install gcc python-devel && sudo pip install twisted
备注:
当安装出现错误:command 'gcc' failed with exit status 1
需安装gcc与python-dev(或python-devel)
Debian
sudo apt-get install gcc python-dev && sudo pip install twisted
CentOS
sudo yum install gcc python-devel && sudo pip install twisted
备注:
当安装出现错误:command 'gcc' failed with exit status 1
需安装gcc与python-dev(或python-devel)
转载于:https://www.cnblogs.com/flowjacky/p/4955250.html