pip install scrcpy-client
命令出现以下报错 performance hint: av\logging.pyx:232:5: Exception check on 'log_callback' will always require the GIL to be acquired.
Possible solutions:
1. Declare 'log_callback' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
2. Use an 'int' return type on 'log_callback' to allow an error code to be returned.
conda
。#创建python 3.10.13的环境 gamed 名称可自定义
conda create -n gamed python=3.10.13
# 激活 gamed 虚拟环境后,你的命令行前面会多出虚拟环境的名称
conda activate gamed
pip install scrcpy-client
终于成功了。