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: liststr):

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: liststr):

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

相关推荐
花酒锄作田1 小时前
Pydantic校验配置文件
python
hboot1 小时前
AI工程师第四课 - 深度学习入门
pytorch·python·神经网络
ZhengEnCi12 小时前
P2M-Matplotlib折线图完全指南-从数据可视化到趋势分析的Python绘图利器
python·matlab·数据可视化
ZhengEnCi14 小时前
P2L-Matplotlib饼图完全指南-从数据可视化到图表定制的Python绘图利器
python·matlab
曲幽14 小时前
你的REST接口还在“过度投喂”数据吗?——FastAPI + GraphQL实战避坑指南
python·fastapi·web·graphql·route·cors·rest·strawberry
用户83580861879115 小时前
基于 Self-RAG 与列表级重排序的进阶 RAG 系统设计与实现
python
Warson_L1 天前
Python `Annotated` 与 LangGraph Reducer 学习笔记
python
韩师傅1 天前
海天线算法的前世今生
python·计算机视觉
韩师傅1 天前
当你的甲方设备过烂,要如何快速出效果?
python·计算机视觉
Warson_L1 天前
LangGraph的MessageState and HumanMessage
python