开发者

Can't run pycparser: Needs ply.yacc?

开发者 https://www.devze.com 2023-03-10 23:17 出处:网络
I downloaded pycparser and ran python setup.py install, but whenever I tr开发者_如何学运维y to run anything, I get:

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

精彩评论

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