如何修复 Ubuntu /usr/bin/env: 'python': No such file or directory
在最近的 Ubuntu 版本中,你可能会遇到错误消息
python_missing_error.txt
/usr/bin/env: 'python': No such file or directory对于一些想使用 python 执行的脚本,但只有 python3 可用(python2 早已弃用)。
要修复此问题,安装 python-is-python3 包,它使 python 成为 python3 的别名:
install_python_is_python3.sh
sudo apt -y install python-is-python3Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow