库版本不兼容问题
#676
Replies: 2 comments
-
python版本为3.10.13 conda环境下,台式机版本ubuntu18.04 |
Beta Was this translation helpful? Give feedback.
0 replies
-
应该不只是一个库的问题。通常有互相依赖的。我把我目前配置的贴上来,看看你能不能用得上。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当我下载完requirement要求的包后,然后运行cli_demo.py
出现下列错误
(py310) woodx@Machine:~/workSpace/ChatGLM3/basic_demo$ python3 cli_demo.py Traceback (most recent call last): File "/home/woodx/workSpace/ChatGLM3/basic_demo/cli_demo.py", line 3, in <module> from transformers import AutoTokenizer, AutoModel File "/home/woodx/anaconda3/envs/py310/lib/python3.10/site-packages/transformers/__init__.py", line 26, in <module> from . import dependency_versions_check File "/home/woodx/anaconda3/envs/py310/lib/python3.10/site-packages/transformers/dependency_versions_check.py", line 57, in <module> require_version_core(deps[pkg]) File "/home/woodx/anaconda3/envs/py310/lib/python3.10/site-packages/transformers/utils/versions.py", line 117, in require_version_core return require_version(requirement, hint) File "/home/woodx/anaconda3/envs/py310/lib/python3.10/site-packages/transformers/utils/versions.py", line 111, in require_version _compare_versions(op, got_ver, want_ver, requirement, pkg, hint) File "/home/woodx/anaconda3/envs/py310/lib/python3.10/site-packages/transformers/utils/versions.py", line 44, in _compare_versions raise ImportError( ImportError: tokenizers>=0.11.1,!=0.11.3,<0.14 is required for a normal functioning of this module, but found tokenizers==0.15.0. Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
根据提示更改tokenizers版本为0.11.1,也无法运行成功
Beta Was this translation helpful? Give feedback.
All reactions