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.
精彩评论