python - Is autopy installable locally? -
i seem have trouble installing autopy.h
https://github.com/msanders/autopy/#introduction
i tried installation via git:
$ git clone git://github.com/msanders/autopy.git $ cd autopy $ python setup.py build
but following error:
>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 src/autopy-color-module.c:1: src/autopy-color-module.h:5:20: error: python.h: no such file or directory in file included 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 exit status 1
so
src/autopy-color-module.h:5:20: error: python.h: no such file or directory
is missing. because ubuntu hates me, or because software not compilable git? easy_install unfortunately needs access /usr/local/lib/python2.6/dist-packages/
don't have. hoping import library locally code.
you don't have development headers python. since you're on ubuntu, install python-dev package:
apt-get install python-dev
Comments
Post a Comment