Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    repo安装报错 /usr/bin/env: “python”: 没有那个文件或目录 解决方法

    V Series
    2
    3
    2096
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • newcastle
      newcastle LV 6 last edited by newcastle

      转自:http://bbs.eeworld.com.cn/thread-1219304-1-1.html

      根据全志 V853 SDK 下载环境搭建,安装repo时出现如下错误:

      repo help
      /usr/bin/env: “python”: 没有那个文件或目录
      

      解决方案:

      出现这个错误是由于在电脑中没有安装python,或者是因为安装了python2但是没有创建python2到python的软链接;

      注意:一定要安装python2,使用python3不行。

      如果没有安装python直接使用如下命令安装就行:

      sudo apt-get install python
      

      如果安装了python2,只要使用如下命令创建软链接就行:

      sudo ln -s /usr/bin/python2 /usr/bin/python
      

      repo 正确配置好后,输入repo help的打印如下:

      repo help
      warning: Python 3 support is currently experimental. YMMV.
      Please use Python 2.6 - 2.7 instead.
      usage: repo COMMAND [ARGS]
      
      repo is not yet installed.  Use "repo init" to install it here.
      
      The most commonly used repo commands are:
      
        init      Install repo in the current working directory
        help      Display detailed help on a command
      
      For access to the full online help, install repo ("repo init").
      
      1 Reply Last reply Reply Quote Share 0
      • I
        ICpachong LV 5 last edited by

        这个帖子是转载的吧

        newcastle 1 Reply Last reply Reply Quote Share 0
        • newcastle
          newcastle LV 6 @ICpachong last edited by

          @icpachong 已编辑,感谢老哥分享

          1 Reply Last reply Reply Quote Share 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策