我在python2.7下安装报错
C:\Python27\pylot_1.26>python run.py -a 5
Traceback (most recent call last):
File "run.py", line 118, in <module>
import ui.console as pylot_console
File "C:\Python27\pylot_1.26\ui\console\__init__.py", line 1, in <module>
from pylot_console import *
File "C:\Python27\pylot_1.26\ui\console\pylot_console.py", line 28, in <module
>
import win.cpos as cpos
File "C:\Python27\pylot_1.26\ui\console\win\cpos.py", line 25, in <module>
getpos = _consolepos.getpos
NameError: name '_consolepos' is not defined
pylot_1.26\ui\console\win\cpos.py
importsys
is_25=sys.version.startswith('2.5')
is_26=sys.version.startswith('2.6')
ifis_25:
import_consolepos25as_consolepos
elifis_26:
import_consolepos26as_consolepos
getpos=_consolepos.getpos
gotoxy=_consolepos.gotoxy
仅支持 python2.5,2.6
版本不对、要么就是少安装了个东西,貌似遇到过http://www.pylot.org/gettingstarted.html你有合适的版本组合推荐吗版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。