ubuntu2020运行repo遇到:/usr/bin/env: ‘python’: No such file or directory
遇到的错误:首先查看python的位置whereis python在/usr/bin目录下有python3.8,说明有oython3.8的软链接,但是没有python2的软链接。repo iit需要python2,所以需要先现在python2,然后再为python2创建软链接sudo apt-get install python2sudo ln -s /usr/bin/python2 /usr/b
·
遇到的错误:
首先查看python的位置
whereis python
在/usr/bin目录下有python3.8,说明有oython3.8的软链接,但是没有python2的软链接。repo iit需要python2,所以需要先现在python2,然后再为python2创建软链接
sudo apt-get install python2
sudo ln -s /usr/bin/python2 /usr/bin/python #在/usr/bin/python目录下为python2创建软连接
在执行repo init,执行情况如下
更多推荐
已为社区贡献1条内容
所有评论(0)