【发布时间】:2013-06-20 10:15:08
【问题描述】:
我正在部署一个托管在 Webfaction 上的 Django 电子商务网站
我有一个与这篇文章中所述相同的问题,这里是:http://community.webfaction.com/questions/1500/installing-m2crypto。
总而言之,无论是使用下载的 tarball 还是 easy_install-2.7 M2Crypto,安装都失败并显示错误 "unable to execute swig: No such file or directory"。
但我遵循了上一个问题的答案,将 tarbal 与 SVN 进行了比较,似乎所有文件都存在。由于客户端限制,我被 M2Crypto 束缚,所以我必须安装它。
我的错误信息与链接的错误略有不同:
Searching for M2Crypto
Reading http://pypi.python.org/simple/M2Crypto/
Best match: M2Crypto 0.21.1
Downloading http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.21.1.tar.gz#md5=f93d8462ff7646397a9f77a2fe602d17
Processing M2Crypto-0.21.1.tar.gz
Running M2Crypto-0.21.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XNqvUW/M2Crypto-0.21.1/egg-dist-tmp-TmSQt9
unable to execute swig: No such file or directory
error: Setup script exited with error: command 'swig' failed with exit status 1
有人对此有什么想法吗?
【问题讨论】:
-
尝试安装 SWIG:stackoverflow.com/questions/3050520/…
-
我没有 sudo 访问权限,那么如何安装 SWIG?
标签: python django centos easy-install m2crypto