开发者

Can't run pycparser: Needs ply.yacc?

I downloaded pycparser and ran python setup.py install, but whenever I tr开发者_如何学运维y to run anything, I get:

...
    from .c_parser import CParser
  File "C:\Program Files\Python 3.2\lib\site-packages\pycparser\c_parser.py", line 11, in <module>
    import ply.yacc
ImportError: No module named ply.yacc

What's wrong? I'm pretty sure I followed the Readme exactly...


FWIW, these days pycparser comes with PLY pre-packaged so it's no longer a pre-requisite. Just install pycparser and you're ready to go.


Looks like it depends on ply. Download and install, and you should be fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜