-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac m1 npm run build-python报错 #105
Comments
检查一下自己的Python环境。 本质上执行的是 (electron/python目录):python setup.py |
➜ python git:(master) ✗ python --version |
我的电脑是m1 pro的 |
我已经配置python环境变量了 |
同样的问题,发现是python3命令不执行,他执行的python 我只有python3这个命令,所以我把python3改成了python就能正常执行了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
➜ python git:(master) ✗ npm run build-python
[ee-bin] [build] Run [build python] command
[ee-bin] [build] config: {"directory":"./python","cmd":"python","args":["./setup.py","build"]}
[ee-bin] [build] The [build python] command is running
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn python ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn python',
path: 'python',
spawnargs: [ './setup.py', 'build' ]
}
The text was updated successfully, but these errors were encountered: