Skip to content
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

Closed
Provissy opened this issue May 17, 2020 · 4 comments
Closed

Ubuntu 20.04 提示找不到 python (No python detected) #86

Provissy opened this issue May 17, 2020 · 4 comments

Comments

@Provissy
Copy link

Provissy commented May 17, 2020

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

@xVanTuring xVanTuring pinned this issue May 17, 2020
@ghost
Copy link

ghost commented May 21, 2020

万众期待的正式版呢

@lightis-tian
Copy link

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

yes, thank you very much!

@xVanTuring
Copy link
Collaborator

fixed

@cyfex
Copy link

cyfex commented Apr 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants