Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xuhengdada opened this issue May 18, 2024 · 2 comments
Open

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

xuhengdada opened this issue May 18, 2024 · 2 comments

Comments

@xuhengdada
Copy link

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

@xuhengdada xuhengdada changed the title [Bug]: 无法按转依赖环境 [Bug]: 无法安装依赖环境 May 18, 2024
@binary-husky
Copy link
Owner

抱歉我手上没有arm设备

@binaryYuki
Copy link
Contributor

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

pip install 'spacy[apple]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants