2012-06-13 4 views
1

는 내가 이미 자식을 통해 설치를 시도autopy install 로컬 가능합니까?

https://github.com/msanders/autopy/#introduction 

몇 가지 문제 설치 autopy.h 것 같다 :

$ git clone git://github.com/msanders/autopy.git 
$ cd autopy 
$ python setup.py build 

을하지만 난 다음 오류 얻을 : 그래서

>python setup.py build 
running build 
running build_py 
running build_ext 
building 'color' extension 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNDEBUG=1 -DMM_LITTLE_ENDIAN -DUSE_X11 -I/usr/include/python2.6 -c src/autopy-color-module.c -o build/temp.linux-i686-2.6/src/autopy-color-module.o -Wall -Wparentheses -Winline -Wbad-function-cast -Wdisabled-optimization -Wshadow 
In file included from src/autopy-color-module.c:1: 
src/autopy-color-module.h:5:20: error: Python.h: No such file or directory 
In file included from src/autopy-color-module.c:1: 
src/autopy-color-module.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘initcolor’ 
... 
src/autopy-color-module.c:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 
error: command 'gcc' failed with exit status 1 

src/autopy-color-module.h:5:20: error: Python.h: No such file or directory

가 없습니다. 우분투가 나를 싫어하기 때문에 아니면 소프트웨어가 git에서 컴파일 할 수 없기 때문입니까? Easy_install은 불행히도 내가 가지고 있지 않은 /usr/local/lib/python2.6/dist-packages/에 대한 액세스가 필요합니다. 라이브러리를 내 코드로 가져 오기를 바랬습니다.

답변

5

파이썬 용 개발 헤더가 없습니다. 우분투를 사용하고 있기 때문에 python-dev 패키지를 설치하기 만하면됩니다.

apt-get install python-dev 
+0

도 시냅스를 통해 설치할 수 있습니까? 또는 더 나은 로컬? – tarrasch

+0

시냅스는 apt-get에 대한 GUI 일뿐입니다. 그렇습니다. apt-get 패키지를 로컬에서만 설치할 수 있기 때문에 두 번째 질문의 의미를 모르겠습니다. – jterrace

+0

python-dev2.6을 설치하면 문제가 해결되었습니다. 감사. – tarrasch