binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
64.73k stars 8k forks source link

[Bug]: 和protobuf版本相关的依赖冲突 #1884

Open 123zdq opened 3 months ago

123zdq commented 3 months ago

Installation Method | 安装方法与平台

Anaconda (I used latest requirements.txt)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

按照原本的requirements文件安装后,报错 tensorboard 2.16.2 requires protobuf!=4.24.0,>=3.19.6, but you have protobuf 3.18.0 which is incompatible. tensorflow-intel 2.16.1 requires protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3, but you have protobuf 3.18.0 which is incompatible. wandb 0.16.6 requires protobuf!=4.21.0,<5,>=3.19.0; sys_platform != "linux", but you have protobuf 3.18.0 which is incompatible. 手动把requirements文件中的'protobuf==3.18'改成'protobuf==3.20.3'后,再运行一遍pip按照requirements安装,解决上述报错但产生了新的报错 'paddlepaddle 2.6.1 requires protobuf<=3.20.2,>=3.1.0; platform_system == "Windows", but you have protobuf 3.20.3 which is incompatible. paddlepaddle-gpu 2.6.1.post120 requires protobuf<=3.20.2,>=3.1.0; platform_system == "Windows", but you have protobuf 3.20.3 which is incompatible. '

Screen Shot | 有帮助的截图

TT_WY5%_%E~~42@ L6S )P7 7OJU~(UV9IC%%%HZ4%ZF YU

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

No response

binary-husky commented 3 months ago

请问python版本是多少

123zdq commented 3 months ago

请问python版本是多少

Python版本是3.11.9,使用的是conda创建的Python环境,创建方法就是本项目readme里面直接运行方法说的

binary-husky commented 3 months ago

请问python版本是多少

Python版本是3.11.9,使用的是conda创建的Python环境,创建方法就是本项目readme里面直接运行方法说的

我尝试复现一下

binary-husky commented 3 months ago

复现命令:

conda create --name=debug3119 python=3.11.9
cd /d G:\23\roll\gpt_academic
pip install -r requirements.txt

复现结果:正常安装

Successfully installed Markdown-3.6 PyMuPDFb-1.24.6 PySocks-1.7.1 aiofiles-24.1.0 aiohttp-3.9.5 aiosignal-1.3.1 altair-5.3.0 annotated-types-0.7.0 anthropic-0.31.0 anyio-4.4.0 arxiv-2.1.3 attrs-23.2.0 beautifulsoup4-4.12.3 blis-0.7.11 cachetools-5.3.3 catalogue-2.0.10 certifi-2024.7.4 charset-normalizer-3.3.2 click-8.1.7 cloudpathlib-0.18.1 colorama-0.4.6 confection-0.1.5 contourpy-1.2.1 cycler-0.12.1 cymem-2.0.8 dashscope-1.20.1 diskcache-5.6.3 distro-1.9.0 docker-7.1.0 edge-tts-6.1.12 fastapi-0.110.0 feedparser-6.0.11 ffmpy-0.3.2 filelock-3.15.4 flaml-2.1.2 fonttools-4.53.1 frozenlist-1.4.1 fsspec-2024.6.1 gradio-3.32.10 gradio-client-0.8.0 h11-0.14.0 httpcore-1.0.5 httpx-0.27.0 huggingface-hub-0.23.4 idna-3.7 jinja2-3.1.4 jiter-0.5.0 jsonschema-4.23.0 jsonschema-specifications-2023.12.1 kiwisolver-1.4.5 langcodes-3.4.0 language-data-1.2.0 latex2mathml-3.77.0 linkify-it-py-2.0.3 lxml-5.2.2 marisa-trie-1.2.0 markdown-it-py-2.2.0 markupsafe-2.1.5 matplotlib-3.9.1 mdit-py-plugins-0.3.3 mdtex2html-1.3.0 mdurl-0.1.2 multidict-6.0.5 murmurhash-1.0.10 numpy-1.26.4 openai-1.35.13 orjson-3.10.6 packaging-24.1 pandas-2.2.2 pillow-10.4.0 preshed-3.0.9 prompt_toolkit-3.0.47 protobuf-3.18.0 pyautogen-0.2.32 pydantic-2.5.2 pydantic-core-2.14.5 pydub-0.25.1 pygments-2.18.0 pyjwt-2.8.0 pymdown-extensions-10.8.1 pymupdf-1.24.7 pyparsing-3.1.2 pypdf2-2.12.1 pyphen-0.15.0 python-dateutil-2.9.0.post0 python-docx-1.1.2 python-dotenv-1.0.1 python-markdown-math-0.8 python-multipart-0.0.9 pytz-2024.1 pywin32-306 pyyaml-6.0.1 referencing-0.35.1 regex-2024.5.15 requests-2.32.3 rich-13.7.1 rjsmin-1.2.2 rpds-py-0.19.0 safetensors-0.4.3 scipdf_parser-0.52 semantic-version-2.10.0 sgmllib3k-1.0.0 shellingham-1.5.4 six-1.16.0 smart-open-7.0.4 sniffio-1.3.1 soupsieve-2.5 spacy-3.7.5 spacy-legacy-3.0.12 spacy-loggers-1.0.5 srsly-2.4.8 starlette-0.36.3 termcolor-2.4.0 textstat-0.7.3 thinc-8.2.5 tiktoken-0.7.0 tokenizers-0.19.1 toolz-0.12.1 tqdm-4.66.4 transformers-4.42.3 typer-0.12.3 typing-extensions-4.12.2 tzdata-2024.1 uc-micro-py-1.0.3 urllib3-2.2.2 uvicorn-0.30.1 wasabi-1.1.3 wcwidth-0.2.13 weasel-0.4.1 websocket-client-1.8.0 websockets-11.0.3 wrapt-1.16.0 yarl-1.9.4 zhipuai-2.0.1

结论:暂时无法复现