python插件安装问题----急急急!!!!

qq_20266415 2017-03-20 11:07:33
我想装gist算子的插件,网址https://pypi.python.org/pypi/pyleargist
但是我不知道为何我把fftw3、numpy、PIL等都装完之后,运行python setup.py install,会提示错误
C:\pyleargist-2.0.5>python setup.py build
running build
running build_ext
skipping 'src\leargist.c' Cython extension (up-to-date)
building 'leargist' extension
C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packages\numpy\core\include -Ilear_gist -IC:\Python27\include -IC:\Python27\PC /Tclear_gist/standalone_image.c /Fobuild\temp.win32-2.7\Release\lear_gist/standalone_image.obj -DUSE_GIST -DSTANDALONE_GIST
standalone_image.c
lear_gist/standalone_image.c(15) : error C2143: syntax error : missing ';' before 'type'
lear_gist/standalone_image.c(16) : error C2065: 'wh' : undeclared identifier
lear_gist/standalone_image.c(36) : error C2143: syntax error : missing ';' before 'type'
lear_gist/standalone_image.c(37) : error C2065: 'wh' : undeclared identifier
lear_gist/standalone_image.c(38) : error C2065: 'wh' : undeclared identifier
lear_gist/standalone_image.c(39) : error C2065: 'wh' : undeclared identifier
error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

求哪位大神指导一下,非常感谢!
...全文
301 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_20266415 2017-03-22
  • 打赏
  • 举报
回复
python setup.py install我也试过,错误是一样的,就是不知道这个错误是因为什么而起的。
qq_20266415 2017-03-22
  • 打赏
  • 举报
回复
gist算子那个网页上提示的是用built,我也不理解
AlbertS 2017-03-21
  • 打赏
  • 举报
回复
安装完不是直接用吗?为什么还有bulid

37,721

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧