PaddlePaddle/PaddleHub

dependency conflicts for Paddlehub

nyck33 opened this issue · 1 comments

I had to downgrade protobuf but then downgrading it causes another conflict. The server works but I'm afraid of something breaking or not working later on.

(paddlehub) nobu@LAPTOP-DNCQ5AAC:/mnt/d/chatgpt/ocr$ pip install paddlehub==2.1.0
Collecting paddlehub==2.1.0
  Using cached paddlehub-2.1.0-py3-none-any.whl (211 kB)
Collecting colorama (from paddlehub==2.1.0)
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting colorlog (from paddlehub==2.1.0)
  Using cached colorlog-6.7.0-py2.py3-none-any.whl (11 kB)
Collecting easydict (from paddlehub==2.1.0)
  Using cached easydict-1.10-py3-none-any.whl
Collecting filelock (from paddlehub==2.1.0)
  Using cached filelock-3.12.2-py3-none-any.whl (10 kB)
Collecting flask>=1.1.0 (from paddlehub==2.1.0)
  Using cached Flask-2.3.2-py3-none-any.whl (96 kB)
Collecting gitpython (from paddlehub==2.1.0)
  Using cached GitPython-3.1.32-py3-none-any.whl (188 kB)
Requirement already satisfied: numpy in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from paddlehub==2.1.0) (1.24.4)
Collecting matplotlib (from paddlehub==2.1.0)
  Using cached matplotlib-3.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB)
Collecting opencv-python (from paddlehub==2.1.0)
  Using cached opencv_python-4.8.0.74-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.7 MB)
Collecting packaging (from paddlehub==2.1.0)
  Using cached packaging-23.1-py3-none-any.whl (48 kB)
Collecting paddle2onnx>=0.5.1 (from paddlehub==2.1.0)
  Using cached paddle2onnx-1.0.6-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.1 MB)
Collecting paddlenlp>=2.0.0rc5 (from paddlehub==2.1.0)
  Using cached paddlenlp-2.6.0rc0-py3-none-any.whl (2.5 MB)
Requirement already satisfied: Pillow in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from paddlehub==2.1.0) (10.0.0)
Collecting pyyaml (from paddlehub==2.1.0)
  Using cached PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
Collecting pyzmq (from paddlehub==2.1.0)
  Using cached pyzmq-25.1.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.1 MB)
Collecting rarfile (from paddlehub==2.1.0)
  Using cached rarfile-4.0-py3-none-any.whl (28 kB)
Collecting tqdm (from paddlehub==2.1.0)
  Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
Collecting visualdl>=2.0.0 (from paddlehub==2.1.0)
  Using cached visualdl-2.5.3-py3-none-any.whl (6.3 MB)
Collecting gunicorn>=19.10.0 (from paddlehub==2.1.0)
  Using cached gunicorn-20.1.0-py3-none-any.whl (79 kB)
Collecting Werkzeug>=2.3.3 (from flask>=1.1.0->paddlehub==2.1.0)
  Using cached Werkzeug-2.3.6-py3-none-any.whl (242 kB)
Collecting Jinja2>=3.1.2 (from flask>=1.1.0->paddlehub==2.1.0)
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting itsdangerous>=2.1.2 (from flask>=1.1.0->paddlehub==2.1.0)
  Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting click>=8.1.3 (from flask>=1.1.0->paddlehub==2.1.0)
  Using cached click-8.1.5-py3-none-any.whl (98 kB)
Collecting blinker>=1.6.2 (from flask>=1.1.0->paddlehub==2.1.0)
  Using cached blinker-1.6.2-py3-none-any.whl (13 kB)
Collecting importlib-metadata>=3.6.0 (from flask>=1.1.0->paddlehub==2.1.0)
  Using cached importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Requirement already satisfied: setuptools>=3.0 in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from gunicorn>=19.10.0->paddlehub==2.1.0) (67.8.0)
Collecting jieba (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached jieba-0.42.1-py3-none-any.whl
Collecting seqeval (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached seqeval-1.2.2-py3-none-any.whl
Collecting dill<0.3.5 (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached dill-0.3.4-py2.py3-none-any.whl (86 kB)
Collecting multiprocess<=0.70.12.2 (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached multiprocess-0.70.12.2-py38-none-any.whl (128 kB)
Collecting datasets>=2.0.0 (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached datasets-2.13.1-py3-none-any.whl (486 kB)
Collecting paddlefsl (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached paddlefsl-1.1.0-py3-none-any.whl (101 kB)
Collecting sentencepiece (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached sentencepiece-0.1.99-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
Collecting huggingface-hub>=0.11.1 (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached huggingface_hub-0.16.4-py3-none-any.whl (268 kB)
Collecting protobuf==3.20.2 (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached protobuf-3.20.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
Collecting Flask-Babel (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached flask_babel-3.1.0-py3-none-any.whl (9.6 kB)
Collecting fastapi (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached fastapi-0.100.0-py3-none-any.whl (65 kB)
Collecting uvicorn (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached uvicorn-0.23.0-py3-none-any.whl (59 kB)
Collecting typer (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached typer-0.9.0-py3-none-any.whl (45 kB)
Collecting rich (from paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached rich-13.4.2-py3-none-any.whl (239 kB)
Collecting bce-python-sdk (from visualdl>=2.0.0->paddlehub==2.1.0)
  Using cached bce_python_sdk-0.8.87-py3-none-any.whl (231 kB)
Requirement already satisfied: requests in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from visualdl>=2.0.0->paddlehub==2.1.0) (2.31.0)
Requirement already satisfied: six>=1.14.0 in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from visualdl>=2.0.0->paddlehub==2.1.0) (1.16.0)
Collecting pandas (from visualdl>=2.0.0->paddlehub==2.1.0)
  Using cached pandas-2.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB)
Collecting psutil (from visualdl>=2.0.0->paddlehub==2.1.0)
  Using cached psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB)
Collecting gitdb<5,>=4.0.1 (from gitpython->paddlehub==2.1.0)
  Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting contourpy>=1.0.1 (from matplotlib->paddlehub==2.1.0)
  Using cached contourpy-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (300 kB)
Collecting cycler>=0.10 (from matplotlib->paddlehub==2.1.0)
  Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0 (from matplotlib->paddlehub==2.1.0)
  Using cached fonttools-4.41.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB)
Collecting kiwisolver>=1.0.1 (from matplotlib->paddlehub==2.1.0)
  Using cached kiwisolver-1.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB)
Collecting pyparsing<3.1,>=2.3.1 (from matplotlib->paddlehub==2.1.0)
  Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting python-dateutil>=2.7 (from matplotlib->paddlehub==2.1.0)
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting importlib-resources>=3.2.0 (from matplotlib->paddlehub==2.1.0)
  Using cached importlib_resources-6.0.0-py3-none-any.whl (31 kB)
Collecting pyarrow>=8.0.0 (from datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached pyarrow-12.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.0 MB)
Collecting xxhash (from datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached xxhash-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213 kB)
Collecting fsspec[http]>=2021.11.1 (from datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached fsspec-2023.6.0-py3-none-any.whl (163 kB)
Collecting aiohttp (from datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached aiohttp-3.8.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)
Collecting Babel>=2.12 (from Flask-Babel->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached Babel-2.12.1-py3-none-any.whl (10.1 MB)
Collecting pytz>=2022.7 (from Flask-Babel->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython->paddlehub==2.1.0)
  Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting typing-extensions>=3.7.4.3 (from huggingface-hub>=0.11.1->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Collecting zipp>=0.5 (from importlib-metadata>=3.6.0->flask>=1.1.0->paddlehub==2.1.0)
  Using cached zipp-3.16.2-py3-none-any.whl (7.2 kB)
Collecting MarkupSafe>=2.0 (from Jinja2>=3.1.2->flask>=1.1.0->paddlehub==2.1.0)
  Using cached MarkupSafe-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from requests->visualdl>=2.0.0->paddlehub==2.1.0) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from requests->visualdl>=2.0.0->paddlehub==2.1.0) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from requests->visualdl>=2.0.0->paddlehub==2.1.0) (2.0.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages (from requests->visualdl>=2.0.0->paddlehub==2.1.0) (2023.5.7)
Collecting pycryptodome>=3.8.0 (from bce-python-sdk->visualdl>=2.0.0->paddlehub==2.1.0)
  Using cached pycryptodome-3.18.0-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
Collecting future>=0.6.0 (from bce-python-sdk->visualdl>=2.0.0->paddlehub==2.1.0)
  Using cached future-0.18.3-py3-none-any.whl
Collecting pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 (from fastapi->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached pydantic-2.0.3-py3-none-any.whl (364 kB)
Collecting starlette<0.28.0,>=0.27.0 (from fastapi->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached starlette-0.27.0-py3-none-any.whl (66 kB)
Collecting tzdata>=2022.1 (from pandas->visualdl>=2.0.0->paddlehub==2.1.0)
  Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)
Collecting markdown-it-py>=2.2.0 (from rich->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached Pygments-2.15.1-py3-none-any.whl (1.1 MB)
Collecting scikit-learn>=0.21.3 (from seqeval->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached scikit_learn-1.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.1 MB)
Collecting h11>=0.8 (from uvicorn->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting attrs>=17.3.0 (from aiohttp->datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp->datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached multidict-6.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (121 kB)
Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp->datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached yarl-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (266 kB)
Collecting frozenlist>=1.1.1 (from aiohttp->datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached frozenlist-1.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (220 kB)
Collecting aiosignal>=1.1.2 (from aiohttp->datasets>=2.0.0->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting annotated-types>=0.4.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->fastapi->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached annotated_types-0.5.0-py3-none-any.whl (11 kB)
Collecting pydantic-core==2.3.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->fastapi->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached pydantic_core-2.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB)
Collecting scipy>=1.5.0 (from scikit-learn>=0.21.3->seqeval->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached scipy-1.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.5 MB)
Collecting joblib>=1.1.1 (from scikit-learn>=0.21.3->seqeval->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached joblib-1.3.1-py3-none-any.whl (301 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn>=0.21.3->seqeval->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Collecting anyio<5,>=3.4.0 (from starlette<0.28.0,>=0.27.0->fastapi->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached anyio-3.7.1-py3-none-any.whl (80 kB)
Collecting sniffio>=1.1 (from anyio<5,>=3.4.0->starlette<0.28.0,>=0.27.0->fastapi->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting exceptiongroup (from anyio<5,>=3.4.0->starlette<0.28.0,>=0.27.0->fastapi->paddlenlp>=2.0.0rc5->paddlehub==2.1.0)
  Using cached exceptiongroup-1.1.2-py3-none-any.whl (14 kB)
Installing collected packages: sentencepiece, rarfile, pytz, paddle2onnx, jieba, easydict, zipp, xxhash, tzdata, typing-extensions, tqdm, threadpoolctl, sniffio, smmap, scipy, pyzmq, pyyaml, python-dateutil, pyparsing, pygments, pycryptodome, pyarrow, psutil, protobuf, packaging, opencv-python, multidict, mdurl, MarkupSafe, kiwisolver, joblib, itsdangerous, h11, gunicorn, future, fsspec, frozenlist, fonttools, filelock, exceptiongroup, dill, cycler, contourpy, colorlog, colorama, click, blinker, Babel, attrs, async-timeout, yarl, Werkzeug, uvicorn, typer, scikit-learn, pydantic-core, pandas, paddlefsl, multiprocess, markdown-it-py, Jinja2, importlib-resources, importlib-metadata, huggingface-hub, gitdb, bce-python-sdk, anyio, annotated-types, aiosignal, starlette, seqeval, rich, pydantic, matplotlib, gitpython, flask, aiohttp, Flask-Babel, fastapi, visualdl, datasets, paddlenlp, paddlehub
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.20.0
    Uninstalling protobuf-3.20.0:
      Successfully uninstalled protobuf-3.20.0
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.
paddlepaddle-gpu 2.4.2.post117 requires protobuf<=3.20.0,>=3.1.0, but you have protobuf 3.20.2 which is incompatible.
Successfully installed Babel-2.12.1 Flask-Babel-3.1.0 Jinja2-3.1.2 MarkupSafe-2.1.3 Werkzeug-2.3.6 aiohttp-3.8.4 aiosignal-1.3.1 annotated-types-0.5.0 anyio-3.7.1 async-timeout-4.0.2 attrs-23.1.0 bce-python-sdk-0.8.87 blinker-1.6.2 click-8.1.5 colorama-0.4.6 colorlog-6.7.0 contourpy-1.1.0 cycler-0.11.0 datasets-2.13.1 dill-0.3.4 easydict-1.10 exceptiongroup-1.1.2 fastapi-0.100.0 filelock-3.12.2 flask-2.3.2 fonttools-4.41.0 frozenlist-1.4.0 fsspec-2023.6.0 future-0.18.3 gitdb-4.0.10 gitpython-3.1.32 gunicorn-20.1.0 h11-0.14.0 huggingface-hub-0.16.4 importlib-metadata-6.8.0 importlib-resources-6.0.0 itsdangerous-2.1.2 jieba-0.42.1 joblib-1.3.1 kiwisolver-1.4.4 markdown-it-py-3.0.0 matplotlib-3.7.2 mdurl-0.1.2 multidict-6.0.4 multiprocess-0.70.12.2 opencv-python-4.8.0.74 packaging-23.1 paddle2onnx-1.0.6 paddlefsl-1.1.0 paddlehub-2.1.0 paddlenlp-2.6.0rc0 pandas-2.0.3 protobuf-3.20.2 psutil-5.9.5 pyarrow-12.0.1 pycryptodome-3.18.0 pydantic-2.0.3 pydantic-core-2.3.0 pygments-2.15.1 pyparsing-3.0.9 python-dateutil-2.8.2 pytz-2023.3 pyyaml-6.0 pyzmq-25.1.0 rarfile-4.0 rich-13.4.2 scikit-learn-1.3.0 scipy-1.10.1 sentencepiece-0.1.99 seqeval-1.2.2 smmap-5.0.0 sniffio-1.3.0 starlette-0.27.0 threadpoolctl-3.2.0 tqdm-4.65.0 typer-0.9.0 typing-extensions-4.7.1 tzdata-2023.3 uvicorn-0.23.0 visualdl-2.5.3 xxhash-3.2.0 yarl-1.9.2 zipp-3.16.2
(paddlehub) nobu@LAPTOP-DNCQ5AAC:/mnt/d/chatgpt/ocr$ pip install -U protobuf===3.20.0
Collecting protobuf===3.20.0
  Using cached protobuf-3.20.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
Installing collected packages: protobuf
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.20.2
    Uninstalling protobuf-3.20.2:
      Successfully uninstalled protobuf-3.20.2
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.
paddlenlp 2.6.0rc0 requires protobuf==3.20.2, but you have protobuf 3.20.0 which is incompatible.
Successfully installed protobuf-3.20.0
(paddlehub) nobu@LAPTOP-DNCQ5AAC:/mnt/d/chatgpt/ocr$ python
Python 3.8.17 (default, Jul  5 2023, 21:04:15)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddlehub
/home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
  warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
/home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/home/nobu/miniconda3/envs/paddlehub/lib/python3.8/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
>>> paddlehub.server_check()
[2023-07-17 09:29:43,593] [    INFO] - Request Hub-Server successfully.
True
>>> exit()
(paddlehub) nobu@LAPTOP-DNCQ5AAC:/mnt/d/chatgpt/ocr$

现阶段有效版本可按如下方式安装(以anaconda作为环境管理工具为例):

conda create -n py38 python==3.8
conda activate py38
python -m pip install paddlepaddle-gpu==2.5.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install paddlehub==2.4.0