Navigation

    全志在线开发者论坛

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

    R128 FreeRTOS编译提示找不到python

    A Series
    2
    2
    1604
    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.
    • N
      nzdzhd LV 4 last edited by

      编译R128 FreeRTOS SDK方案时出现错误,提示没有/usr/bin/python,但是明明就已经安装python了。
      1
      相关log如下:

      xxx:~/r128$ mrtos
      build rtos ...
       Dark Builder
       Version (1.6.0 - BiCEP2 (Gravitational Waves))
      /bin/bash: /usr/bin/python: 没有那个文件或目录
      
      **********make rtos fail***********
      
      1 Reply Last reply Reply Quote Share 0
      • livpo
        livpo LV 6 last edited by

        /usr/bin/python是指向python2或python3的软链接

        有两种解决办法:

        1、如果已经安装了python的软件包:

        执行mrtos_memuconfig,配置CONFIG_DBUILD_PYTHON为对应的python路径,如/usr/bin/python3或/usr/bin/python2。
        

        2、在ubuntu主机上安装下面两个软件包之一:

        sudo apt install python-is-python2  # 安装后,/usr/bin/python软链接到/usr/bin/python2
        sudo apt install python-is-python3  # 安装后,/usr/bin/python软链接到/usr/bin/python3
        
        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

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

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