-
Notifications
You must be signed in to change notification settings - Fork 509
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
Ubuntu 20.04 提示找不到 python (No python detected) #86
Comments
万众期待的正式版呢 |
yes, thank you very much! |
fixed |
This is not fixed in the source code. The post just shows a workaround. But the repository contributors should update their code to fix this issue. |
Ubuntu 20.04 Focal 默认自带python3.8, 但是根据指引, 所有引用python的包必须显示指定
python3
或其他python版本。Ubuntu从20.04开始不再将
python
加入$PATH
,而Electron-SSR默认调用python
而不是python3
。这导致Electron-SSR无法运行并提示找不到python,然而python3与python2都已安装。解决方法:
sudo apt install python-is-python3
或者手动创建symlink
sudo ln -s /usr/bin/python3 /usr/bin/python
检视是否成功:
$ whereis python
The text was updated successfully, but these errors were encountered: