私は自分のWebアプリケーションでpkeyを生成できるようにM2Cryptoをインストールしようとしています。私のホスティングの要件は、ピップを使って依存関係をインストールする必要があるということです。 m2cryptoをシステムレベルでインストールすることは、私にとっては選択肢ではありません。私はMint 12を開発に使用しており、herokuに展開しています。Pythonのm2Cryptoをvirtualenvと連動させるには?
エラー:コマンド 'swig'が終了ステータス1で失敗しました。は問題のように見えますが、Googleは役に立たなかったです。 考えますか?
ダンプ
Downloading/unpacking m2crypto
Downloading M2Crypto-0.21.1.tar.gz (413Kb): 413Kb downloaded
Running setup.py egg_info for package m2crypto
Installing collected packages: m2crypto
Running setup.py install for m2crypto
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/include/python2.7 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
unable to execute swig: No such file or directory
error: command 'swig' failed with exit status 1
Complete output from command /home/bob/.virtualenvs/my_app/bin/python -c "import setuptools;__file__='/home/bob/.virtualenvs/my_app/build/m2crypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-O1V45n-record/install-record.txt --install-headers /home/bob/.virtualenvs/my_app/include/site/python2.7:
running install
running build
(....clip...)
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/include/python2.7 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
unable to execute swig: No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Command /home/bob/.virtualenvs/my_app/bin/python -c "import setuptools;__file__='/home/bob/.virtualenvs/my_app/build/m2crypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-O1V45n-record/install-record.txt --install-headers /home/bob/.virtualenvs/my_app/include/site/python2.7 failed with error code 1 in /home/bob/.virtualenvs/my_app/build/m2crypto
あなたは何を意味するのです」あなたのvirtualenvとあなたの道で泳いでいますか? "私は答えがノーだと思います。 – bdd