问题应该就是setuptools的版本太新。更换较低版本。
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz tar zxvf setuptools-0.9.8.tar.gz cd setuptools-0.9.8/ sudo python setup.py install cd sudo easy_install pip sudo aptitude install libffi-dev git clone git@github.com:openstack/swift.git cd swift/ sudo python setup.py install