1、问题:

import yaml
ModuleNotFoundError: No module named 'yaml'

yaml模块的pip工具包名称不是yaml,而是pyyaml,所以不是直接pip install yaml,而是

pip install pyyaml

2、问题:

RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)FileNotFoundError: [WinError 2] 系统找不到指定的文件

解决方法:

先打开Anaconda Prompt,输入如下命令:

conda install ffmpeg
pip install ffmpy

然后在输入如下代码测试是否安装成功

3、问题:

跑代码的时候遇到如下错误

TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:1. Downgrade the protobuf package to 3.20.x or lower.2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

解决方法:

按照提示的第一个,降级protoc即可:

pip install 'protobuf~=3.19.0'

09 TypeError: Descriptors cannot not be created directly.相关推荐

  1. TensorFlow2.8.0报错TypeError: Descriptors cannot not be created directly.

    @创建于:2022.09.28 @修改于:2022.09.28 1.错误信息 Traceback (most recent call last):File "D:\PycharmProjec ...

  2. TypeError: Descriptors cannot not be created directly.

    python 依赖 protobuf 奇怪报错 TypeError: Descriptors cannot not be created directly. 在使用 paddlex 时引入一些调用了 ...

  3. python TypeError: Descriptors cannot not be created directly错误解决

    运行python脚本时出现错误 TypeError: Descriptors cannot not be created directly. If this call came from a _pb2 ...

  4. TypeError: Descriptors cannot not be created directly解决

    文章目录 问题 解决 问题 跑代码的时候遇到了这个问题: TypeError: Descriptors cannot not be created directly. If this call cam ...

  5. import keras时遇到的错误 TypeError: Descriptors cannot not be created directly. If this call came from a _

    问题描述 版本对应 keras 与 tensorflow 版本对应关系:https://master–floydhub-docs.netlify.app/guides/environments/ 本文 ...

  6. 解决:TypeError: Descriptors cannot not be created directly

    我使用pip命令下载安装paddlepaddle库,具体命令如下所示,采用清华镜像源,这样下载速度更快! pip install -i https://pypi.tuna.tsinghua.edu.c ...

  7. Python报错 TypeError: Descriptors cannot not be created directly

    Python报错TypeError: Descriptors cannot not be created directly 具体错误: TypeError: Descriptors cannot no ...

  8. Python报错TypeError: Descriptors cannot not be created directly

    Python报错TypeError: Descriptors cannot not be created directly 具体错误: TypeError: Descriptors cannot no ...

  9. 问题:TypeError: Descriptors cannot not be created directly.解决方法

    运行代码时提示如下报错: 解决上面问题,直接在控制台中输入下面命令重新安装protobuf即可,如下: pip install 'protobuf~=3.19.0' 以上就是解决TypeError: ...

最新文章

  1. 【CyberSecurityLearning 34】Linux脚本编写(Shell脚本)
  2. 在OpenCV环境下对图像做Gamma校正
  3. 泊松分布的分布函数_10分钟了解泊松分布
  4. python svg转png_Python实现批量把SVG格式转成png、pdf格式的代码分
  5. java spring cloud 版 b2b2c 社交电商-服务消费者(Feign)
  6. 华为诺亚CV方向19篇论文入选ICCV 2019
  7. getdatatable mysql_C# 自定义MySqlHelp类,包含了获取DataTable的方法,但是调用时总是提示“类型初始值设定项引发异常”...
  8. 讯飞输入法将深度神经网络DNN技术应用于语音识别达到业界领先水平
  9. python异步回调函数的实现
  10. QT练习5:显示GIF图片
  11. Linux_Tips
  12. Bitvise SSH Client 无法连接服务器
  13. android 支付宝工具类,Android app第三方支付宝支付接入教程
  14. 基于php+mysql的学员量化考评系统
  15. DirectShow编程(2)- 开始DirectShow旅程
  16. *7-1 CCF 2015-09-1 数列分段
  17. python 字典修改键(key)的方法
  18. Windows 上 安装Postgres 及pgAdmin4的基本使用
  19. 垃圾邮件攻击与勒索病毒家族VoidCrypt
  20. 前端重点---DNS和CDN

热门文章

  1. 成功解决:配置nginx反向代理不正确导致验证码失效的问题
  2. PB 切换中英文输入法
  3. 二硬脂酰磷脂酰乙醇胺-聚乙二醇-巯基吡啶 DSPE-PEG-OPSS;常用于脂质体的合成
  4. 后端程序员看前端想死(二)进入页面之后js分析
  5. 【DC综合】逻辑综合的实施流程
  6. Callnovo如何因小见大,高端定制——“快乐的音符跳动在异国他乡”篇
  7. linux查询进程号是否存在启动脚本,Shell实现判断进程是否存在并重新启动脚本分享...
  8. 剑指offer | 面试题10:斐波那切数列
  9. 光流传感器 定位精度_基于光流传感器的移动机器人定位方法
  10. 利用win10笔记本自带Camera玩人脸识别