PLY安装不正确

时间:2014-06-26 20:53:15

标签: python ply

我正在尝试使用git bash按照python setup.py install安装PLY,但结果却不一样。

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

1 个答案:

答案 0 :(得分:2)

如果有人关心,我解决了这个问题,我刚刚安装了setuptools