【发布时间】:2015-02-10 13:37:18
【问题描述】:
我正在尝试通过命令 pip install paypalrestsdk 将 paypalrestsdk 安装到我的 virutalenv 目录 (/var/www/tipomat)。 virtualenv 目录被激活。
安装结束出现错误:
Command "/var/www/tipomat/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-JNYP2q/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-McjuwW-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/tipomat/include/site/python2.7" failed with error code 1 in /tmp/pip-build-JNYP2q/cffi
我有 setuptools(12.0.5)
这个问题出现在使用 Debian OS 的虚拟专用服务器上。
【问题讨论】:
-
Ouuu,我找到了解决方案:sudo apt-get install libffi-dev ..
标签: python paypal debian virtualenv