目录

usrbinenv-python-No-such-file-or-directory

目录

/usr/bin/env: ‘python’: No such file or directory

问题场景:

/usr/bin/env: ‘python’: No such file or directory

可能的解决方案 #1

如果未安装 Python 3,请安装它: apt-get install python3

可能的解决方案#2

如果已安装 Python 3,请运行以下命令: whereis python3

然后我们为它创建一个符号链接: sudo ln -s /usr/bin/python3 /usr/bin/python

參考鏈接:https://stackoverflow.com/questions/3655306/ubuntu-usr-bin-env-python-no-such-file-or-directory