【可兼容的】protobuf、streamlit、transformers、icetk、cpm_kernels版本号

  • 搞大模型训练的工作不可避免地需要很多库,但是非常讨厌的事情是这些库动不动就不兼容。最近在做文本分类训练的时候又遇到了这个问题,为了避免后面再安装包的时候把我之前的环境破坏了,所以特地来记录一下:protobuf、streamlit、transformers、icetk、cpm_kernels版本号
(venv_net) PS D:\mydatapro\myweb> pip show protobuf streamlit transformers icetk cpm_kernels
Name: protobuf
Version: 3.20.3
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author:
Author-email:
License: BSD-3-Clause
Location: D:\mydatapro\venv_net\Lib\site-packages
Requires:
Required-by: googleapis-common-protos, onnxruntime, opentelemetry-proto, streamlit
---
Name: streamlit
Version: 1.17.0
Summary: The fastest way to build data apps in Python
Home-page: https://streamlit.io
Author: Snowflake Inc
Author-email: hello@streamlit.io
License: Apache License 2.0
Location: D:\mydatapro\venv_net\Lib\site-packages
Requires: altair, blinker, cachetools, click, gitpython, importlib-metadata, numpy, packaging, pandas, pillow, protobuf, pyarrow, pydeck, pympler, python-dateutil, requests, rich, semver, toml, tornado, typing-extensions, tzlocal, validators, watchdog 
Required-by:
---
Name: transformers
Version: 4.27.1
Summary: State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow
Home-page: https://github.com/huggingface/transformers
Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)
Author-email: transformers@huggingface.co
License: Apache 2.0 License
Location: D:\mydatapro\venv_net\Lib\site-packages
Requires: filelock, huggingface-hub, numpy, packaging, pyyaml, regex, requests, tokenizers, tqdm
Required-by: sentence-transformers
---
Name: icetk
Version: 0.0.3
Summary: A unified tokenization tool for Images, Chinese and English.
Home-page: https://github.com/THUDM/icetk
Author: Wendi Zheng and Ming Ding
Author-email:
License: MIT license
Location: D:\mydatapro\venv_net\Lib\site-packages
Requires: requests, sentencepiece, torchvision, tqdm
Required-by:
---
Name: cpm-kernels
Version: 1.0.11
Summary: CPM CUDA kernels
Home-page: UNKNOWN
Author:
Author-email:
License: Apache 2.0
Location: D:\mydatapro\venv_net\Lib\site-packages
Requires:
Required-by:

检查是否有冲突:pip check

在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
这个错误信息表示找不到protobufProtocol Buffers)库,具体缺失的部分有protobuf_libraries和protobuf_include_dir。 解决这个问题的方法如下: 1. 确认是否已经安装了protobuf库。可以通过在命令行运行"pip list"或"conda list"查看已安装的库。如果未安装,可以使用包管理工具如pip或conda进行安装(例如,"pip install protobuf")。 2. 如果已经安装了protobuf库,但仍然报错,可能是由于缺少protobuf_libraries和protobuf_include_dir变量的路径。可以在系统的环境变量中设置这两个变量。protobuf_libraries变量应指向protobuf库的二进制文件路径,而protobuf_include_dir变量应指向protobuf库的头文件路径。 3. 如果已经设置了这两个变量,但仍然出现错误,那么可能是因为这些路径设置不正确或者protobuf库的安装位置与预期不符。可以通过重新安装protobuf库,并确保设置路径正确来解决问题。 4. 如果仍然无法解决问题,可以尝试手动下载并安装protobuf库。在protobuf的官方GitHub页面上可以找到最新的发布版本,并提供了安装步骤。按照步骤下载并安装protobuf库,然后再次检查路径设置是否正确。 总之,缺少protobufprotobuf_libraries和protobuf_include_dir)错误通常表示系统无法找到protobuf库。通过确认库是否已安装、设置正确的路径和重新安装protobuf库等方法,可以解决这个问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一只天蝎

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值