netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.93k stars 1.16k forks source link

[BUG] Ubuntu纯python环境部署,依赖包版本矛盾 #316

Open Geekgulu opened 6 months ago

Geekgulu commented 6 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

纯Python环境本地部署,出现提示docker-compose 1.29.2需要的依赖包 websocket-client<1,>=0.32.0, python-dotenv<1,>=0.13.0, PyYAML<6,>=3.10。但是手动安装这几个依赖包的对应版本以后,又会提示其他的依赖需要其他版本,例如:html2image 2.0.4.3 requires websocket-client<2.0.0,>=1.0.0, but you have websocket-client 0.32.0,qanything 0.2 requires python-dotenv==1.0.1, but you have python-dotenv 0.13.0 。 完整的安装显示如下:

(qanything) kent@cig-aigc:~/QAnything$ pip install -e . Obtaining file:///home/kent/QAnything Preparing metadata (setup.py) ... done Requirement already satisfied: modelscope==1.13.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.13.0) Requirement already satisfied: Pillow==10.2.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (10.2.0) Requirement already satisfied: numpy==1.24.3 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.24.3) Requirement already satisfied: PyMuPDF==1.23.22 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.23.22) Requirement already satisfied: easyocr==1.7.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.7.1) Requirement already satisfied: torch==2.1.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (2.1.2) Requirement already satisfied: torchvision==0.16.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (0.16.2) Requirement already satisfied: transformers==4.36.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (4.36.2) Requirement already satisfied: openai==1.12.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.12.0) Requirement already satisfied: concurrent-log-handler==0.9.25 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (0.9.25) Requirement already satisfied: sentencepiece==0.1.99 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (0.1.99) Requirement already satisfied: tiktoken==0.6.0 in /home/kent/.local/lib/python3.10/site-packages (from qanything==0.2) (0.6.0) Requirement already satisfied: sanic==23.6.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (23.6.0) Requirement already satisfied: sanic_ext==23.6.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (23.6.0) Requirement already satisfied: faiss-cpu==1.8.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.8.0) Requirement already satisfied: openpyxl==3.1.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (3.1.2) Requirement already satisfied: langchain==0.1.9 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (0.1.9) Requirement already satisfied: pypinyin==0.50.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (0.50.0) Requirement already satisfied: python-docx==1.1.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.1.0) Requirement already satisfied: unstructured==0.12.4 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (0.12.4) Requirement already satisfied: accelerate==0.21.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (0.21.0) Requirement already satisfied: networkx==3.2.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (3.2.1) Requirement already satisfied: faster_whisper==1.0.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (1.0.1) Collecting python-dotenv==1.0.1 (from qanything==0.2) Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB) Requirement already satisfied: duckduckgo-search==5.3.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (5.3.0) Requirement already satisfied: html2text==2024.2.26 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from qanything==0.2) (2024.2.26) Requirement already satisfied: packaging>=20.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from accelerate==0.21.0->qanything==0.2) (23.2) Requirement already satisfied: psutil in /home/kent/.local/lib/python3.10/site-packages (from accelerate==0.21.0->qanything==0.2) (5.9.8) Requirement already satisfied: pyyaml in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from accelerate==0.21.0->qanything==0.2) (6.0.1) Requirement already satisfied: portalocker>=1.6.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from concurrent-log-handler==0.9.25->qanything==0.2) (2.8.2) Requirement already satisfied: click>=8.1.7 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from duckduckgo-search==5.3.0->qanything==0.2) (8.1.7) Requirement already satisfied: curl-cffi>=0.6.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from duckduckgo-search==5.3.0->qanything==0.2) (0.6.3) Requirement already satisfied: orjson>=3.10.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from duckduckgo-search==5.3.0->qanything==0.2) (3.10.1) Requirement already satisfied: opencv-python-headless in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from easyocr==1.7.1->qanything==0.2) (4.9.0.80) Requirement already satisfied: scipy in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from easyocr==1.7.1->qanything==0.2) (1.13.0) Requirement already satisfied: scikit-image in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from easyocr==1.7.1->qanything==0.2) (0.23.2) Requirement already satisfied: python-bidi in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from easyocr==1.7.1->qanything==0.2) (0.4.2) Requirement already satisfied: Shapely in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from easyocr==1.7.1->qanything==0.2) (2.0.4) Requirement already satisfied: pyclipper in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from easyocr==1.7.1->qanything==0.2) (1.3.0.post5) Requirement already satisfied: ninja in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from easyocr==1.7.1->qanything==0.2) (1.11.1.1) Requirement already satisfied: av==11.* in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from faster_whisper==1.0.1->qanything==0.2) (11.0.0) Requirement already satisfied: ctranslate2<5,>=4.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from faster_whisper==1.0.1->qanything==0.2) (4.2.1) Requirement already satisfied: huggingface-hub>=0.13 in /home/kent/.local/lib/python3.10/site-packages (from faster_whisper==1.0.1->qanything==0.2) (0.23.0) Requirement already satisfied: tokenizers<0.16,>=0.13 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from faster_whisper==1.0.1->qanything==0.2) (0.15.2) Requirement already satisfied: onnxruntime<2,>=1.14 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from faster_whisper==1.0.1->qanything==0.2) (1.17.3) Requirement already satisfied: SQLAlchemy<3,>=1.4 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (2.0.29) Requirement already satisfied: aiohttp<4.0.0,>=3.8.3 in /home/kent/.local/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (3.9.5) Requirement already satisfied: async-timeout<5.0.0,>=4.0.0 in /home/kent/.local/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (4.0.3) Requirement already satisfied: dataclasses-json<0.7,>=0.5.7 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (0.6.5) Requirement already satisfied: jsonpatch<2.0,>=1.33 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (1.33) Requirement already satisfied: langchain-community<0.1,>=0.0.21 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (0.0.34) Requirement already satisfied: langchain-core<0.2,>=0.1.26 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (0.1.46) Requirement already satisfied: langsmith<0.2.0,>=0.1.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (0.1.52) Requirement already satisfied: pydantic<3,>=1 in /home/kent/.local/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (2.7.1) Requirement already satisfied: requests<3,>=2 in /home/kent/.local/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (2.31.0) Requirement already satisfied: tenacity<9.0.0,>=8.1.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from langchain==0.1.9->qanything==0.2) (8.2.3) Requirement already satisfied: addict in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (2.4.0) Requirement already satisfied: attrs in /home/kent/.local/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (23.2.0) Requirement already satisfied: datasets>=2.14.5 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (2.19.0) Requirement already satisfied: einops in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (0.8.0) Requirement already satisfied: filelock>=3.3.0 in /home/kent/.local/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (3.14.0) Requirement already satisfied: gast>=0.2.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (0.5.4) Requirement already satisfied: oss2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (2.18.5) Requirement already satisfied: pandas in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (2.2.2) Requirement already satisfied: pyarrow!=9.0.0,>=6.0.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (16.0.0) Requirement already satisfied: python-dateutil>=2.1 in /home/kent/.local/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (2.9.0.post0) Requirement already satisfied: setuptools in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (68.2.2) Requirement already satisfied: simplejson>=3.3.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (3.19.2) Requirement already satisfied: sortedcontainers>=1.5.9 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (2.4.0) Requirement already satisfied: tqdm>=4.64.0 in /home/kent/.local/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (4.66.4) Requirement already satisfied: urllib3>=1.26 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (2.2.1) Requirement already satisfied: yapf in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from modelscope==1.13.0->qanything==0.2) (0.40.2) Requirement already satisfied: anyio<5,>=3.5.0 in /home/kent/.local/lib/python3.10/site-packages (from openai==1.12.0->qanything==0.2) (4.3.0) Requirement already satisfied: distro<2,>=1.7.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from openai==1.12.0->qanything==0.2) (1.9.0) Requirement already satisfied: httpx<1,>=0.23.0 in /home/kent/.local/lib/python3.10/site-packages (from openai==1.12.0->qanything==0.2) (0.27.0) Requirement already satisfied: sniffio in /home/kent/.local/lib/python3.10/site-packages (from openai==1.12.0->qanything==0.2) (1.3.1) Requirement already satisfied: typing-extensions<5,>=4.7 in /home/kent/.local/lib/python3.10/site-packages (from openai==1.12.0->qanything==0.2) (4.11.0) Requirement already satisfied: et-xmlfile in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from openpyxl==3.1.2->qanything==0.2) (1.1.0) Requirement already satisfied: PyMuPDFb==1.23.22 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from PyMuPDF==1.23.22->qanything==0.2) (1.23.22) Requirement already satisfied: lxml>=3.1.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from python-docx==1.1.0->qanything==0.2) (5.2.1) Requirement already satisfied: sanic-routing>=23.6.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (23.12.0) Requirement already satisfied: httptools>=0.0.10 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (0.6.1) Requirement already satisfied: aiofiles>=0.6.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (23.2.1) Requirement already satisfied: websockets>=10.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (12.0) Requirement already satisfied: multidict<7.0,>=5.0 in /home/kent/.local/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (6.0.5) Requirement already satisfied: html5tagger>=1.2.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (1.3.0) Requirement already satisfied: tracerite>=1.0.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (1.1.1) Requirement already satisfied: uvloop>=0.15.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (0.19.0) Requirement already satisfied: ujson>=1.35 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sanic==23.6.0->qanything==0.2) (5.9.0) Requirement already satisfied: regex>=2022.1.18 in /home/kent/.local/lib/python3.10/site-packages (from tiktoken==0.6.0->qanything==0.2) (2024.4.28) Requirement already satisfied: sympy in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (1.12) Requirement already satisfied: jinja2 in /home/kent/.local/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (3.1.4) Requirement already satisfied: fsspec in /home/kent/.local/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (2024.3.1) Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (12.1.105) Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (12.1.105) Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (12.1.105) Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (8.9.2.26) Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (12.1.3.1) Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (11.0.2.54) Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (10.3.2.106) Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (11.4.5.107) Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (12.1.0.106) Requirement already satisfied: nvidia-nccl-cu12==2.18.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (2.18.1) Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (12.1.105) Requirement already satisfied: triton==2.1.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from torch==2.1.2->qanything==0.2) (2.1.0) Requirement already satisfied: safetensors>=0.3.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from transformers==4.36.2->qanything==0.2) (0.4.3) Requirement already satisfied: chardet in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (5.2.0) Requirement already satisfied: filetype in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (1.2.0) Requirement already satisfied: python-magic in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (0.4.27) Requirement already satisfied: nltk in /home/kent/.local/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (3.8.1) Requirement already satisfied: tabulate in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (0.9.0) Requirement already satisfied: beautifulsoup4 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (4.12.3) Requirement already satisfied: emoji in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (2.11.1) Requirement already satisfied: python-iso639 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (2024.4.27) Requirement already satisfied: langdetect in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (1.0.9) Requirement already satisfied: rapidfuzz in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (3.8.1) Requirement already satisfied: backoff in /home/kent/.local/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (2.2.1) Requirement already satisfied: unstructured-client>=0.15.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (0.22.0) Requirement already satisfied: wrapt in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured==0.12.4->qanything==0.2) (1.16.0) Requirement already satisfied: markdown in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured[md]==0.12.4->qanything==0.2) (3.6) Requirement already satisfied: python-pptx<=0.6.23 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured[pptx]==0.12.4->qanything==0.2) (0.6.23) Requirement already satisfied: nvidia-nvjitlink-cu12 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch==2.1.2->qanything==0.2) (12.4.127) Requirement already satisfied: aiosignal>=1.1.2 in /home/kent/.local/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain==0.1.9->qanything==0.2) (1.3.1) Requirement already satisfied: frozenlist>=1.1.1 in /home/kent/.local/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain==0.1.9->qanything==0.2) (1.4.1) Requirement already satisfied: yarl<2.0,>=1.0 in /home/kent/.local/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain==0.1.9->qanything==0.2) (1.9.4) Requirement already satisfied: idna>=2.8 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from anyio<5,>=3.5.0->openai==1.12.0->qanything==0.2) (3.7) Requirement already satisfied: exceptiongroup>=1.0.2 in /home/kent/.local/lib/python3.10/site-packages (from anyio<5,>=3.5.0->openai==1.12.0->qanything==0.2) (1.2.1) Requirement already satisfied: cffi>=1.12.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from curl-cffi>=0.6.2->duckduckgo-search==5.3.0->qanything==0.2) (1.16.0) Requirement already satisfied: certifi>=2024.2.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from curl-cffi>=0.6.2->duckduckgo-search==5.3.0->qanything==0.2) (2024.2.2) Requirement already satisfied: marshmallow<4.0.0,>=3.18.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from dataclasses-json<0.7,>=0.5.7->langchain==0.1.9->qanything==0.2) (3.21.1) Requirement already satisfied: typing-inspect<1,>=0.4.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from dataclasses-json<0.7,>=0.5.7->langchain==0.1.9->qanything==0.2) (0.9.0) Requirement already satisfied: pyarrow-hotfix in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from datasets>=2.14.5->modelscope==1.13.0->qanything==0.2) (0.6) Requirement already satisfied: dill<0.3.9,>=0.3.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from datasets>=2.14.5->modelscope==1.13.0->qanything==0.2) (0.3.8) Requirement already satisfied: xxhash in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from datasets>=2.14.5->modelscope==1.13.0->qanything==0.2) (3.4.1) Requirement already satisfied: multiprocess in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from datasets>=2.14.5->modelscope==1.13.0->qanything==0.2) (0.70.16) Requirement already satisfied: httpcore==1. in /home/kent/.local/lib/python3.10/site-packages (from httpx<1,>=0.23.0->openai==1.12.0->qanything==0.2) (1.0.5) Requirement already satisfied: h11<0.15,>=0.13 in /home/kent/.local/lib/python3.10/site-packages (from httpcore==1.->httpx<1,>=0.23.0->openai==1.12.0->qanything==0.2) (0.14.0) Requirement already satisfied: jsonpointer>=1.9 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from jsonpatch<2.0,>=1.33->langchain==0.1.9->qanything==0.2) (2.4) Requirement already satisfied: coloredlogs in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from onnxruntime<2,>=1.14->faster_whisper==1.0.1->qanything==0.2) (15.0.1) Requirement already satisfied: flatbuffers in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from onnxruntime<2,>=1.14->faster_whisper==1.0.1->qanything==0.2) (24.3.25) Requirement already satisfied: protobuf in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from onnxruntime<2,>=1.14->faster_whisper==1.0.1->qanything==0.2) (5.26.1) Requirement already satisfied: annotated-types>=0.4.0 in /home/kent/.local/lib/python3.10/site-packages (from pydantic<3,>=1->langchain==0.1.9->qanything==0.2) (0.6.0) Requirement already satisfied: pydantic-core==2.18.2 in /home/kent/.local/lib/python3.10/site-packages (from pydantic<3,>=1->langchain==0.1.9->qanything==0.2) (2.18.2) Requirement already satisfied: six>=1.5 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from python-dateutil>=2.1->modelscope==1.13.0->qanything==0.2) (1.16.0) Requirement already satisfied: XlsxWriter>=0.5.7 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from python-pptx<=0.6.23->unstructured[pptx]==0.12.4->qanything==0.2) (3.2.0) Requirement already satisfied: charset-normalizer<4,>=2 in /home/kent/.local/lib/python3.10/site-packages (from requests<3,>=2->langchain==0.1.9->qanything==0.2) (3.3.2) Requirement already satisfied: greenlet!=0.4.17 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from SQLAlchemy<3,>=1.4->langchain==0.1.9->qanything==0.2) (3.0.3) Requirement already satisfied: deepdiff>=6.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured-client>=0.15.1->unstructured==0.12.4->qanything==0.2) (7.0.1) Requirement already satisfied: jsonpath-python>=1.0.6 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured-client>=0.15.1->unstructured==0.12.4->qanything==0.2) (1.0.6) Requirement already satisfied: mypy-extensions>=1.0.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured-client>=0.15.1->unstructured==0.12.4->qanything==0.2) (1.0.0) Requirement already satisfied: pypdf>=4.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from unstructured-client>=0.15.1->unstructured==0.12.4->qanything==0.2) (4.2.0) Requirement already satisfied: soupsieve>1.2 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from beautifulsoup4->unstructured==0.12.4->qanything==0.2) (2.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from jinja2->torch==2.1.2->qanything==0.2) (2.1.5) Requirement already satisfied: joblib in /home/kent/.local/lib/python3.10/site-packages (from nltk->unstructured==0.12.4->qanything==0.2) (1.4.2) Requirement already satisfied: crcmod>=1.7 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from oss2->modelscope==1.13.0->qanything==0.2) (1.7) Requirement already satisfied: pycryptodome>=3.4.7 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from oss2->modelscope==1.13.0->qanything==0.2) (3.20.0) Requirement already satisfied: aliyun-python-sdk-kms>=2.4.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from oss2->modelscope==1.13.0->qanything==0.2) (2.16.2) Requirement already satisfied: aliyun-python-sdk-core>=2.13.12 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from oss2->modelscope==1.13.0->qanything==0.2) (2.15.1) Requirement already satisfied: pytz>=2020.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from pandas->modelscope==1.13.0->qanything==0.2) (2024.1) Requirement already satisfied: tzdata>=2022.7 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from pandas->modelscope==1.13.0->qanything==0.2) (2024.1) Requirement already satisfied: imageio>=2.33 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from scikit-image->easyocr==1.7.1->qanything==0.2) (2.34.1) Requirement already satisfied: tifffile>=2022.8.12 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from scikit-image->easyocr==1.7.1->qanything==0.2) (2024.4.24) Requirement already satisfied: lazy-loader>=0.4 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from scikit-image->easyocr==1.7.1->qanything==0.2) (0.4) Requirement already satisfied: mpmath>=0.19 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from sympy->torch==2.1.2->qanything==0.2) (1.3.0) Requirement already satisfied: importlib-metadata>=6.6.0 in /home/kent/.local/lib/python3.10/site-packages (from yapf->modelscope==1.13.0->qanything==0.2) (7.1.0) Requirement already satisfied: platformdirs>=3.5.1 in /home/kent/.local/lib/python3.10/site-packages (from yapf->modelscope==1.13.0->qanything==0.2) (4.2.1) Requirement already satisfied: tomli>=2.0.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from yapf->modelscope==1.13.0->qanything==0.2) (2.0.1) Requirement already satisfied: jmespath<1.0.0,>=0.9.3 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from aliyun-python-sdk-core>=2.13.12->oss2->modelscope==1.13.0->qanything==0.2) (0.10.0) Requirement already satisfied: cryptography>=2.6.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from aliyun-python-sdk-core>=2.13.12->oss2->modelscope==1.13.0->qanything==0.2) (42.0.5) Requirement already satisfied: pycparser in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from cffi>=1.12.0->curl-cffi>=0.6.2->duckduckgo-search==5.3.0->qanything==0.2) (2.22) Requirement already satisfied: ordered-set<4.2.0,>=4.1.0 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from deepdiff>=6.0->unstructured-client>=0.15.1->unstructured==0.12.4->qanything==0.2) (4.1.0) Requirement already satisfied: zipp>=0.5 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from importlib-metadata>=6.6.0->yapf->modelscope==1.13.0->qanything==0.2) (3.18.1) Requirement already satisfied: humanfriendly>=9.1 in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from coloredlogs->onnxruntime<2,>=1.14->faster_whisper==1.0.1->qanything==0.2) (10.0) Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB) Installing collected packages: python-dotenv, qanything Attempting uninstall: python-dotenv Found existing installation: python-dotenv 0.21.1 Uninstalling python-dotenv-0.21.1: Successfully uninstalled python-dotenv-0.21.1 Attempting uninstall: qanything Found existing installation: qanything 0.2 Uninstalling qanything-0.2: Successfully uninstalled qanything-0.2 Running setup.py develop for qanything ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. docker-compose 1.29.2 requires websocket-client<1,>=0.32.0, which is not installed. docker-compose 1.29.2 requires python-dotenv<1,>=0.13.0, but you have python-dotenv 1.0.1 which is incompatible. docker-compose 1.29.2 requires PyYAML<6,>=3.10, but you have pyyaml 6.0.1 which is incompatible. Successfully installed python-dotenv-1.0.1 qanything (qanything) kent@cig-aigc:~/QAnything$ pip install websocket-client==0.32.0 Collecting websocket-client==0.32.0 Downloading websocket_client-0.32.0.tar.gz (192 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 192.2/192.2 kB 2.1 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: six in /home/kent/anaconda3/envs/qanything/lib/python3.10/site-packages (from websocket-client==0.32.0) (1.16.0) Building wheels for collected packages: websocket-client Building wheel for websocket-client (setup.py) ... done Created wheel for websocket-client: filename=websocket_client-0.32.0-py3-none-any.whl size=195666 sha256=297e8c22147e9dde0d5a7672fa445dec483a9d7d1241435a19fab9d3719099aa Stored in directory: /home/kent/.cache/pip/wheels/62/3d/27/caeff7a351daf542d4d822e1dc2a14f00c8bdfbe1dc57a1c4f Successfully built websocket-client Installing collected packages: websocket-client ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. docker-compose 1.29.2 requires python-dotenv<1,>=0.13.0, but you have python-dotenv 1.0.1 which is incompatible. docker-compose 1.29.2 requires PyYAML<6,>=3.10, but you have pyyaml 6.0.1 which is incompatible. html2image 2.0.4.3 requires websocket-client<2.0.0,>=1.0.0, but you have websocket-client 0.32.0 which is incompatible. Successfully installed websocket-client-0.32.0 (qanything) kent@cig-aigc:~/QAnything$ pip install python-dotenv==0.13.0 Collecting python-dotenv==0.13.0 Downloading python_dotenv-0.13.0-py2.py3-none-any.whl.metadata (17 kB) Downloading python_dotenv-0.13.0-py2.py3-none-any.whl (17 kB) Installing collected packages: python-dotenv Attempting uninstall: python-dotenv Found existing installation: python-dotenv 1.0.1 Uninstalling python-dotenv-1.0.1: Successfully uninstalled python-dotenv-1.0.1 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. docker-compose 1.29.2 requires PyYAML<6,>=3.10, but you have pyyaml 6.0.1 which is incompatible. qanything 0.2 requires python-dotenv==1.0.1, but you have python-dotenv 0.13.0 which is incompatible. Successfully installed python-dotenv-0.13.0

期望行为 | Expected Behavior

环境依赖的各个版本要求一致,以顺利完成安装

运行环境 | Environment

- OS: Ubuntu 22.04 LTS
- NVIDIA Driver: 535.171.04
- CUDA:12.2
- docker:26.1.1
- docker-compose:1.29.2
- NVIDIA GPU:RTX4090
- NVIDIA GPU Memory:24GB

QAnything日志 | QAnything logs

No response

复现方法 | Steps To Reproduce

在我的环境中每次都复现,无法正常完成安装

备注 | Anything else?

No response

swim2sun commented 6 months ago

same issue

swim2sun commented 6 months ago

我切换到qanything-python 分支后解决了

glider2019cn commented 5 months ago

怎么切换到qanything-python分支?

vc5409ftu commented 3 months ago

怎么切换到qanything-python分支? -b就是分支意思

运行下面指令 git clone -b qanything-python https://github.com/netease-youdao/QAnything.git cd QAnything