我试图在windows 7 python3.5和RHEL6.x python3.3中安装ctypes模块,但不接受错误。。File "C:\Users\sawad\Downloads\ctypes-1.0.2\setup.py", line 24
raise Exception, "ctypes %s requires Python 2.3 or better" % __version__
^
SyntaxError: invalid syntax
当我使用Python2.6.6版本时,它会给出错误。。running install
running build
running build_py
running build_ext
building '_ctypes' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -fPIC -Ibuild/temp.linux-x86_64-2.6/libffi/include -Ibuild/temp.linux-x86_64-2.6/libffi -I/home/sawad/ctypes-1.0.2/source