PLY安装不正确
我正在尝试按照教程中的方法,通过 python setup.py install
来安装 PLY,使用的是 git bash,但结果却不一样。
python setup.py install
的输出结果是:
running install
running build
running build_py
running install_lib
creating c:\Python27\Lib\site-packages\ply
copying build\lib\ply\cpp.py -> c:\Python27\Lib\site-packages\ply
copying build\lib\ply\ctokens.py -> c:\Python27\Lib\site-packages\ply
copying build\lib\ply\lex.py -> c:\Python27\Lib\site-packages\ply
copying build\lib\ply\yacc.py -> c:\Python27\Lib\site-packages\ply
copying build\lib\ply\__init__.py -> c:\Python27\Lib\site-packages\ply
byte-compiling c:\Python27\Lib\site-packages\ply\cpp.py to cpp.pyc
byte-compiling c:\Python27\Lib\site-packages\ply\ctokens.py to ctokens.pyc
byte-compiling c:\Python27\Lib\site-packages\ply\lex.py to lex.pyc
byte-compiling c:\Python27\Lib\site-packages\ply\yacc.py to yacc.pyc
byte-compiling c:\Python27\Lib\site-packages\ply\__init__.py to __init__.pyc
running install_egg_info
Writing c:\Python27\Lib\site-packages\ply-3.4-py2.7.egg-info
我甚至无法像在 https://github.com/dabeaz/ply 上展示的那样使用 PLY。
import ply.lex as lex
我遇到了一个错误,提示 command not found
。