Closed wjz2001 closed 1 month ago
没完整 log 不知道你 import 啥 error
没完整 log 不知道你 import 啥 error
D:\BallonsTranslator\launch.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
py version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
py executable: D:\BallonsTranslator\ballontrans_pylibs_win\python.exe
version: 1.4.0
branch: dev
Commit hash: b4adf9df4823b4e8ad334e627b2e800dc8e4c918
[INFO ] launch:main:184 - QT_API: pyqt6, QT Version: 6.7.1
Traceback (most recent call last):
File "D:\BallonsTranslator\launch.py", line 291, in
如果用网盘里的大包不会有版本冲突才对啊,你再 launch.bat 同目录下启动控制台输入
.\ballontrans_pylibs_win\python.exe -m pip show tokenizers
和
.\ballontrans_pylibs_win\python.exe -m pip show transformers
看看是什么结果
如果用网盘里的大包不会有版本冲突才对啊,你再 launch.bat 同目录下启动控制台输入
.\ballontrans_pylibs_win\python.exe -m pip show tokenizers
和
.\ballontrans_pylibs_win\python.exe -m pip show transformers
看看是什么结果
Name: tokenizers Version: 0.13.3 Summary: Fast and Customizable Tokenizers Home-page: https://github.com/huggingface/tokenizers Author: Anthony MOI Author-email: anthony@huggingface.co License: Apache License 2.0 Location: d:\ballonstranslator\ballontrans_pylibs_win\lib\site-packages Requires: Required-by: transformers
Name: transformers Version: 4.29.2 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:\ballonstranslator\ballontrans_pylibs_win\lib\site-packages Requires: filelock, huggingface-hub, numpy, packaging, pyyaml, regex, requests, tokenizers, tqdm Required-by:
@wjz2001 试试 .\ballontrans_pylibs_win\python.exe -m pip install -U transformers
再启动,还不行就 .\ballontrans_pylibs_win\python.exe -m pip install -U tokenizers transformers
@wjz2001 你是没用那个大包,然后给 pip 配了什么镜像站吗
.\ballontrans_pylibs_win\python.exe -m pip install -U tokenizers transformers
用了第二个命令成功启动,谢谢
@wjz2001 你是没用那个大包,然后给 pip 配了什么镜像站吗
1用了,我从谷歌云盘下的。没配置镜像站
启动时显示错误ImportError: tokenizers>=0.14,<0.15 is required for a normal functioning of this module, but found tokenizers==0.13.3 我尝试删除ballontrans_pylibs_win里所有与tokenizers相关的文件夹,结果重新运行后又自动下载了0.13.3版本,然后错误就无法解决