InternLM / InternLM/Tutorial

openxlab pip 安装的时候显示缺少debian依赖项 swig 但是根目录packages.txt已经存放了Debian依赖项 swig

Abierto
#746 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
2k
Forks
1.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

openxlab pip 安装的时候显示缺少该依赖项 swig
但是packages.txt已经存放了Debian依赖项 swig
我的项目地址:https://github.com/jabberwockyang/MedicalReviewAgent/
## 我的requirements.txt
```
accelerate>=0.26.1
aiohttp
auto-gptq
bcembedding
beautifulsoup4
datrie==0.8.2
duckduckgo_search
cachetools==5.3.3
einops
faiss-gpu
hanziconv==0.3.2
gradio==4.25.0
langchain>=0.1.12
langchain-community==0.0.38
loguru
lxml_html_clean
openai>=1.0.0
openpyxl
pandas
pdfplumber==0.10.4
pydantic>=1.10.13
PyPDF2==3.0.1
pymupdf
python-docx
pytoml
readability-lxml
redis
requests
ruamel.yaml==0.18.6
ruamel.yaml.clib==0.2.8
scikit-learn
sentence_transformers==2.2.2
StrEnum==0.4.15
# See https://github.com/deanmalmgren/textract/issues/461
# textract @ git+https://github.com/tpoisonooo/textract@master
textract
tiktoken
torch>=2.0.0
transformers>=4.37.0
transformers_stream_generator
unstructured
xgboost==2.0.3
# onnxruntime-gpu==1.17.1
onnxruntime-gpu
shapely==2.0.3
pyclipper==1.3.0.post5
xpinyin==0.7.6
opencv-python==4.9.0.80
```
## 我的packages.txt:
```
libgl1-mesa-glx
swig
libpulse-dev
```

## 构建log报错部分:
```

Building wheel for pocketsphinx (setup.py): started
Building wheel for pocketsphinx (setup.py): finished with status 'error'
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
running bdist_wheel
running build_ext
swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
error: command 'swig' failed: No such file or directory
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pocketsphinx
Running setup.py clean for pocketsphinx
Building wheel for python-pptx (setup.py): started
Building wheel for python-pptx (setup.py): finished with status 'done'
Created wheel for python-pptx: filename=python_pptx-0.6.5-py3-none-any.whl size=237916 sha256=6b403598c7ab61172040c7a30d733d11a730e49dd58e8ee353889672d9354647
Stored in directory: /home/xlab-app-center/.cache/pip/wheels/9e/be/30/b674cc595ee134f617509231a1bfb635a3f6927b9846735e37
Successfully built datrie hanziconv textract docx2txt EbookLib python-pptx
Failed to build pocketsphinx
ERROR: Could not build wheels for pocketsphinx, which is required to install pyproject.toml-based projects
ERROR: executor failed running [/bin/sh -c /bin/bash -c 'if [[ -f requirements.txt ]]; then pip --timeout=100 install --no-warn-script-location -r requirements.txt; else echo no requirements.txt ; fi']: runc did not terminate sucessfully
============================== build end ==============================
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.