📌  相关文章
📜  堆栈错误:命令失败:导入系统;打印 "%s.%s.%s" % sys.version_info[:3]; - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:28.793000             🧑  作者: Mango

代码示例1
gyp ERR! stack Error: Command failed: ....\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]

The layout service package which includes the robotjs npm package, depends on the version of python installed locally.  
The robotjs package is only required for the integration tests to run, however, it is not mandatory.

1. Verify the version of Python installed locally (by typing 'python --version' into a shell) matches the version required by robotjs.

2. Install the layout package using `npm install --ignore-scripts`

3.Follow the instructions latest instructions on how to downgrade/upgrade the Python version listed on the Python.org website.