shadowsocksrr / electron-ssr

Shadowsocksr client using electron
MIT License
1.73k stars 510 forks source link

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

Closed Provissy closed 4 years ago

Provissy commented 4 years ago

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

ghost commented 4 years ago

万众期待的正式版呢

lightis-tian commented 4 years ago

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 commented 4 years ago

fixed

cyfex commented 1 year ago

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.