搜索

451

主题

661

帖子

4945

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
4945
QQ
发表于 2021-6-1 09:27:04 4953 浏览 0 回复

repo init 提示Please upgrade to Python 3.6+.

问题:
Android11 版本 ,执行repo init指令之后,提示 Please upgrade to Python 3.6+.

  1. repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml --repo-url=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -b 3.8.0

  2. repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.
  3. repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.
复制代码

方案:

ubuntu14.04上安装python3.6
  1. 1、下载Python3

  2. wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
  3. wget会将文件下载到当前目录下,所以下载前选好目录。

  4. 2、下载完成后,解压

  5. tar -xvzf Python-3.6.4.tgz
  6. 3、解压完成后,切换到Python3文件夹中

  7. cd ./Python-3.6.4
  8. 4、分别执行

  9. ./configure --with-ssl

  10. make

  11. sudo make install
  12. 5、输入Python3验证

  13. Python3

  14. 从shell(终端)中退出python:快捷键: ctrl+Z


复制代码





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
手机微信同号:13682654092
回复

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


登录或注册
快速回复 返回顶部 返回列表