一、问题描述
嵌入式Linux开发,Ubuntu22下交叉编译报错:
/usr/bin/env: ‘python’: No such file or directory
二、问题分析
1、确定python已安装
sudo apt-get install python -y
2、查看python
ms@ms-virtual-machine:~$ which python3
/usr/bin/python3
s@ms-virtual-machine:~$ whereis python3
python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /usr/share/man/man1/python3.1.gz
ms@ms-virtual-machine:~$
3、python安装后程序名带版本号
三、解决方案
创建软连接
sudo ln -s /usr/bin/python3 /usr/bin/python