1

我正在尝试python setup.py install按照教程中使用 git bash 的方式安装 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

我什至不能使用 PLY,如https://github.com/dabeaz/ply所示

import ply.lex as lex

我得到错误command not found

4

1 回答 1

2

if it someone cares, i solved that, i just installed setuptools

于 2014-08-26T20:52:10.703 回答