我正在尝试让WSH运行Python.pys脚本,但我遇到了一个问题-我已经在两台机器上尝试过了,W7x64和Server2012,两台机器的结果都一样,cscript总是返回:
CScript Error: Can't find script engine "Python"
程序(所有发生在本地管理员帐户下):
'Registered: Python'
尝试运行>;cscript你好。皮斯得到
CScript错误:找不到脚本引擎“Python”
有什么线索吗?我真的不想使用ActivePython。在
Windows上的python似乎是一个PITA。所以,我也有你的问题,我遵循以下steps:
C:\Python27\
和C:\Python27\scripts
(假设您在C:\Python27
位置安装了python)。在它仍然对我不起作用,然而,我被}在那里,跑起来就成功了!在
<python_install>\scripts
迷惑了,发现{我一直在追踪:
调试扩展插件(axdebug)模块不存在-调试已禁用。。
我
traced
它到Lib\site-packages\win32comext\axscript\client\framework.py
并注释掉了打印该消息的trace
调用。。。一切都好。在相关问题 更多 >
编程相关推荐