webrtc编译问题-ubuntu

问题1:

ninja -C out/m101_debug

Traceback (most recent call last):

File "/home/test/webrtc/depot_tools/ninja.py", line 35, in <module>

def parse_args(ninja_args: list[str]):

TypeError: 'type' object is not subscriptable

解决办法:

sudo apt install -y ninja-build

ninja -C out/m101_debug

Traceback (most recent call last):

File "/home/test/webrtc/depot_tools/ninja.py", line 35, in <module>

def parse_args(ninja_args: list[str]):

TypeError: 'type' object is not subscriptable

解决办法:

升级python到3.9

sudo apt update sudo apt install -y software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update

sudo apt install -y python3.9 python3.9-dev python3.9-distutils

配置更新替代项 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 10 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 20 # 选择默认 Python 3 版本(输入 2 选 3.9) sudo update-alternatives --config python3

相关推荐
深蓝电商API15 分钟前
Scrapy管道Pipeline深度解析:多方式数据持久化
爬虫·python·scrapy
噎住佩奇30 分钟前
(Win11系统)搭建Python爬虫环境
爬虫·python
basketball61635 分钟前
python 的对象序列化
开发语言·python
fie88891 小时前
钢结构件制造车间生产调度实例:MATLAB实现(基于遗传算法)
开发语言·matlab·制造
沐知全栈开发1 小时前
PHP 安装指南
开发语言
rgeshfgreh1 小时前
Python流程控制:从条件到循环实战
前端·数据库·python
luoluoal1 小时前
基于python大数据的电影市场预测分析(源码+文档)
python·mysql·django·毕业设计·源码
幻云20101 小时前
Python深度学习:从入门到实战
人工智能·python
Highcharts.js1 小时前
Highcharts Grid 表格/网格安装 |官方安装文档说明
开发语言·javascript·表格组件·highcharts·官方文档·安装说明·网格组件
Zoey的笔记本2 小时前
敏捷与稳定并行:Scrum看板+BPM工具选型指南
大数据·前端·数据库·python·低代码