내 웹 응용 프로그램에서 pkey를 생성 할 수 있도록 M2Crypto를 설치하려고합니다. 필자의 호스팅 요구 사항은 pip를 사용하여 종속성을 설치해야한다고 명시하고 있습니다. 시스템 레벨에서 m2crypto를 설치하는 것은 나를위한 선택 사항이 아닙니다. 나는 민트 12를 개발 중이며 heroku에 배치 할 것입니다.파이썬 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에서 당신의 경로에 swig? " 나는 그 대답이 아니오라고 생각한다. – bdd