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
60.83k stars 7.59k forks source link

[Bug]: 无法安装依赖环境 #1803

Open xuhengdada opened 1 month ago

xuhengdada commented 1 month ago

Installation Method | 安装方法与平台

Pip Install (I used latest requirements.txt)

Version | 版本

Latest | 最新版

OS | 操作系统

Mac

Describe the bug | 简述

我在arm价格下安装requirements.txt中需要的依赖包,但是最后安装到scipdf_parser时,需要spacy,但是一直无法找到合适的版本,最终失败。请问有什么好的解决办法吗?

Screen Shot | 有帮助的截图

Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.7.4-cp310-cp310-macosx_11_0_arm64.whl.metadata (27 kB) Using cached spacy-3.7.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Using cached spacy-3.7.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Collecting pathy>=0.10.0 (from spacy->scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached pathy-0.11.0-py3-none-any.whl.metadata (16 kB) INFO: pip is still looking at multiple versions of fastapi-cli to determine which version is compatible with other requirements. This could take a while. Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.7.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Using cached spacy-3.6.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Collecting thinc<8.2.0,>=8.1.8 (from spacy->scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached thinc-8.1.12-cp310-cp310-macosx_11_0_arm64.whl.metadata (15 kB) Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.6.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (19 kB) INFO: pip is looking at multiple versions of spacy to determine which version is compatible with other requirements. This could take a while. Using cached spacy-3.5.4-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Using cached spacy-3.5.3-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Collecting typer<0.8.0,>=0.3.0 (from spacy->scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached typer-0.7.0-py3-none-any.whl.metadata (17 kB) Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.5.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Using cached spacy-3.5.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Using cached spacy-3.5.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB) Using cached spacy-3.4.4-cp310-cp310-macosx_11_0_arm64.whl.metadata (24 kB) Collecting wasabi<1.1.0,>=0.9.1 (from spacy->scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached wasabi-0.10.1-py3-none-any.whl.metadata (28 kB) Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.4.3-cp310-cp310-macosx_11_0_arm64.whl.metadata (24 kB) INFO: pip is still looking at multiple versions of spacy to determine which version is compatible with other requirements. This could take a while. Using cached spacy-3.4.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (24 kB) Collecting typer<0.5.0,>=0.3.0 (from spacy->scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached typer-0.4.2-py3-none-any.whl.metadata (12 kB) Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.4.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (24 kB) Using cached spacy-3.4.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (24 kB) Using cached spacy-3.3.3-cp310-cp310-macosx_11_0_arm64.whl.metadata (23 kB) Collecting thinc<8.1.0,>=8.0.14 (from spacy->scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached thinc-8.0.17-cp310-cp310-macosx_11_0_arm64.whl.metadata (14 kB) Requirement already satisfied: blis<0.8.0,>=0.4.0 in /Users/xuheng/anaconda3/envs/gptac_venv/lib/python3.10/site-packages (from spacy->scipdf_parser>=0.52->-r requirements.txt (line 10)) (0.7.11) Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.3.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (23 kB) INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C. Using cached spacy-3.3.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (23 kB) Using cached spacy-3.3.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (23 kB) Using cached spacy-3.2.6-cp310-cp310-macosx_11_0_arm64.whl.metadata (23 kB) Using cached spacy-3.2.5-cp310-cp310-macosx_11_0_arm64.whl.metadata (23 kB) Using cached spacy-3.2.4.tar.gz (1.1 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting click>=7.0 (from uvicorn>=0.14.0->gradio==3.32.9->-r requirements.txt (line 1)) Using cached click-8.0.4-py3-none-any.whl.metadata (3.2 kB) Collecting spacy (from scipdf_parser>=0.52->-r requirements.txt (line 10)) Using cached spacy-3.2.3.tar.gz (1.1 MB) Installing build dependencies ... done Getting requirements to build wheel ... -

done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Using cached spacy-3.2.2.tar.gz (1.1 MB) Installing build dependencies ... done Getting requirements to build wheel ... -

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

No response

binary-husky commented 1 month ago

抱歉我手上没有arm设备

binaryYuki commented 1 month ago

先安装 spacy 的依赖: pip install cython cymem murmurhash preshed numpy blis thinc 然后直接指定macos 版本安装即可

pip install 'spacy[apple]'