Open chang50961471 opened 1 year ago
paddlepaddle-gpu版本2.5.1和2.5.2都报错
看样子是faiss
库安装失败,这个库是facebook开源的一个库,确实不是特别好安装,可以尝试install后再uninatall,再install试试,可以反复尝试安装下这个库
Met the same issue. Look like this project is not maintained as no one response for a month
现在问题是否解决呢?
劳烦大佬帮忙解决一下!!!! λ 550999ce7df0 /home pip install paddleclas==2.5.1 -i https://pypi.tuna.tsinghua.edu.cn/simple Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting paddleclas==2.5.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1f/d5/2544711d7bf23947f36bcfce81447af750adebb92f135fcaa28dfc014929/paddleclas-2.5.1-py3-none-any.whl (342 kB) Collecting prettytable (from paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4d/81/316b6a55a0d1f327d04cc7b0ba9d04058cb62de6c3a4d4b0df280cbe3b0b/prettytable-3.9.0-py3-none-any.whl (27 kB) Collecting ujson (from paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/78/90/bfa62616208bd5195a113c0aa4e42c9f471e69edfc48feba6a0ab494cccb/ujson-5.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (53 kB) Requirement already satisfied: opencv-python in /usr/local/lib/python3.10/dist-packages (from paddleclas==2.5.1) (4.8.1.78) Requirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from paddleclas==2.5.1) (9.5.0) Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from paddleclas==2.5.1) (4.66.1) Requirement already satisfied: PyYAML>=5.1 in /usr/local/lib/python3.10/dist-packages (from paddleclas==2.5.1) (6.0) Collecting visualdl>=2.2.0 (from paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ea/b5/37726c750a4f4598660998327c3566b2d2ed5a1a5f44e9f0dde875602447/visualdl-2.5.3-py3-none-any.whl (6.3 MB) Requirement already satisfied: scipy>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from paddleclas==2.5.1) (1.11.3) Collecting scikit-learn>=0.21.0 (from paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d0/0b/26ad95cf0b747be967b15fb71a06f5ac67aba0fd2f9cd174de6edefc4674/scikit_learn-1.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB) Collecting gast==0.3.3 (from paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d6/84/759f5dd23fec8ba71952d97bcc7e2c9d7d63bdc582421f3cd4be845f0c98/gast-0.3.3-py2.py3-none-any.whl (9.7 kB) Collecting faiss-cpu==1.7.1.post2 (from paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/87/91/bf8ea0d42733cbb04f98d3bf27808e4919ceb5ec71102e21119398a97237/faiss-cpu-1.7.1.post2.tar.gz (41 kB) Preparing metadata (setup.py) ... done Collecting easydict (from paddleclas==2.5.1) Using cached easydict-1.11-py3-none-any.whl Requirement already satisfied: numpy<2.0,>=1.17.3 in /usr/local/lib/python3.10/dist-packages (from scikit-learn>=0.21.0->paddleclas==2.5.1) (1.22.0) Collecting joblib>=1.1.1 (from scikit-learn>=0.21.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/10/40/d551139c85db202f1f384ba8bcf96aca2f329440a844f924c8a0040b6d02/joblib-1.3.2-py3-none-any.whl (302 kB) Collecting threadpoolctl>=2.0.0 (from scikit-learn>=0.21.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/81/12/fd4dea011af9d69e1cad05c75f3f7202cdcbeac9b712eea58ca779a72865/threadpoolctl-3.2.0-py3-none-any.whl (15 kB) Collecting bce-python-sdk (from visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4d/9c/fbaeeebdc341e88223faf7464ca38b31a428b5ad7503636393f7233d64aa/bce_python_sdk-0.8.95-py3-none-any.whl (240 kB) Collecting flask>=1.1.1 (from visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/42/015c23096649b908c809c69388a805a571a3bea44362fe87e33fc3afa01f/flask-3.0.0-py3-none-any.whl (99 kB) Collecting Flask-Babel>=3.0.0 (from visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/14/c2/e0ab5abe37882e118482884f2ec660cd06da644ddfbceccf5f88f546b574/flask_babel-4.0.0-py3-none-any.whl (9.6 kB) Requirement already satisfied: protobuf>=3.20.0 in /usr/local/lib/python3.10/dist-packages (from visualdl>=2.2.0->paddleclas==2.5.1) (4.23.2) Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from visualdl>=2.2.0->paddleclas==2.5.1) (2.22.0) Requirement already satisfied: six>=1.14.0 in /usr/lib/python3/dist-packages (from visualdl>=2.2.0->paddleclas==2.5.1) (1.14.0) Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from visualdl>=2.2.0->paddleclas==2.5.1) (3.8.1) Collecting pandas (from visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/02/52/815f643ed3afb3365354548b3c8b557dbf926a65c40ad5b6d9e455147c7e/pandas-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB) Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from visualdl>=2.2.0->paddleclas==2.5.1) (23.1) Collecting rarfile (from visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/75/34/f06b7de74bcea328d8d7a950aad099c1100578cc3960ffc5a00d30ab511c/rarfile-4.1-py3-none-any.whl (28 kB) Collecting psutil (from visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/19/06/4e3fa3c1b79271e933c5ddbad3a48aa2c3d5f592a0fb7c037f3e0f619f4d/psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB) Requirement already satisfied: wcwidth in /usr/local/lib/python3.10/dist-packages (from prettytable->paddleclas==2.5.1) (0.2.6) Collecting Werkzeug>=3.0.0 (from flask>=1.1.1->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c3/fc/254c3e9b5feb89ff5b9076a23218dafbc99c96ac5941e900b71206e6313b/werkzeug-3.0.1-py3-none-any.whl (226 kB) Collecting Jinja2>=3.1.2 (from flask>=1.1.1->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB) Collecting itsdangerous>=2.1.2 (from flask>=1.1.1->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/68/5f/447e04e828f47465eeab35b5d408b7ebaaaee207f48b7136c5a7267a30ae/itsdangerous-2.1.2-py3-none-any.whl (15 kB) Requirement already satisfied: click>=8.1.3 in /usr/local/lib/python3.10/dist-packages (from flask>=1.1.1->visualdl>=2.2.0->paddleclas==2.5.1) (8.1.7) Collecting blinker>=1.6.2 (from flask>=1.1.1->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fa/2a/7f3714cbc6356a0efec525ce7a0613d581072ed6eb53eb7b9754f33db807/blinker-1.7.0-py3-none-any.whl (13 kB) Collecting Babel>=2.12 (from Flask-Babel>=3.0.0->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/86/14/5dc2eb02b7cc87b2f95930310a2cc5229198414919a116b564832c747bc1/Babel-2.13.1-py3-none-any.whl (10.1 MB) Collecting pytz>=2022.7 (from Flask-Babel>=3.0.0->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/32/4d/aaf7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl (502 kB) Collecting pycryptodome>=3.8.0 (from bce-python-sdk->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/00/e6/73931df4046e34a6354d323b4a5b5c18e5184f4a08687806ee3353c81a6b/pycryptodome-3.19.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.2.0->paddleclas==2.5.1) Using cached future-0.18.3-py3-none-any.whl Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->visualdl>=2.2.0->paddleclas==2.5.1) (1.2.0) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib->visualdl>=2.2.0->paddleclas==2.5.1) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib->visualdl>=2.2.0->paddleclas==2.5.1) (4.44.0) Requirement already satisfied: kiwisolver>=1.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->visualdl>=2.2.0->paddleclas==2.5.1) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->visualdl>=2.2.0->paddleclas==2.5.1) (3.1.1) Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.10/dist-packages (from matplotlib->visualdl>=2.2.0->paddleclas==2.5.1) (2.8.2) Collecting numpy<2.0,>=1.17.3 (from scikit-learn>=0.21.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2d/5e/cb38e3d1916cc29880c84a9332a9122a8f49a7b57ec7aea63e0f678587a2/numpy-1.26.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB) Collecting tzdata>=2022.1 (from pandas->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d5/fb/a79efcab32b8a1f1ddca7f35109a50e4a80d42ac1c9187ab46522b2407d7/tzdata-2023.3-py2.py3-none-any.whl (341 kB) Collecting MarkupSafe>=2.0 (from Jinja2>=3.1.2->flask>=1.1.1->visualdl>=2.2.0->paddleclas==2.5.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/12/b3/d9ed2c0971e1435b8a62354b18d3060b66c8cb1d368399ec0b9baa7c0ee5/MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB) Building wheels for collected packages: faiss-cpu Building wheel for faiss-cpu (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [75 lines of output] running bdist_wheel running build running build_py running build_ext building 'faiss._swigfaiss' extension swigging faiss/faiss/python/swigfaiss.i to faiss/faiss/python/swigfaiss_wrap.cpp swig -python -c++ -Doverride= -I/usr/local/include -Ifaiss -DSWIGWORDSIZE64 -o faiss/faiss/python/swigfaiss_wrap.cpp faiss/faiss/python/swigfaiss.i faiss/faiss/python/swigfaiss.i:250: Error: Unable to find 'faiss/impl/platform_macros.h' faiss/faiss/python/swigfaiss.i:254: Error: Unable to find 'faiss/utils/ordered_key_value.h' faiss/faiss/python/swigfaiss.i:255: Error: Unable to find 'faiss/utils/Heap.h' faiss/faiss/python/swigfaiss.i:260: Error: Unable to find 'faiss/utils/AlignedTable.h' faiss/faiss/python/swigfaiss.i:261: Error: Unable to find 'faiss/utils/partitioning.h' faiss/faiss/python/swigfaiss.i:262: Error: Unable to find 'faiss/utils/hamming.h' faiss/faiss/python/swigfaiss.i:365: Error: Unable to find 'faiss/utils/utils.h' faiss/faiss/python/swigfaiss.i:366: Error: Unable to find 'faiss/utils/distances.h' faiss/faiss/python/swigfaiss.i:367: Error: Unable to find 'faiss/utils/random.h' faiss/faiss/python/swigfaiss.i:369: Error: Unable to find 'faiss/MetricType.h' faiss/faiss/python/swigfaiss.i:372: Error: Unable to find 'faiss/Index.h' faiss/faiss/python/swigfaiss.i:373: Error: Unable to find 'faiss/Clustering.h' faiss/faiss/python/swigfaiss.i:375: Error: Unable to find 'faiss/utils/extra_distances.h' faiss/faiss/python/swigfaiss.i:379: Error: Unable to find 'faiss/impl/ProductQuantizer.h' faiss/faiss/python/swigfaiss.i:380: Error: Unable to find 'faiss/impl/AdditiveQuantizer.h' faiss/faiss/python/swigfaiss.i:381: Error: Unable to find 'faiss/impl/ResidualQuantizer.h' faiss/faiss/python/swigfaiss.i:382: Error: Unable to find 'faiss/impl/LocalSearchQuantizer.h' faiss/faiss/python/swigfaiss.i:384: Error: Unable to find 'faiss/VectorTransform.h' faiss/faiss/python/swigfaiss.i:385: Error: Unable to find 'faiss/IndexPreTransform.h' faiss/faiss/python/swigfaiss.i:386: Error: Unable to find 'faiss/IndexFlat.h' faiss/faiss/python/swigfaiss.i:387: Error: Unable to find 'faiss/IndexRefine.h' faiss/faiss/python/swigfaiss.i:388: Error: Unable to find 'faiss/IndexLSH.h' faiss/faiss/python/swigfaiss.i:389: Error: Unable to find 'faiss/impl/PolysemousTraining.h' faiss/faiss/python/swigfaiss.i:390: Error: Unable to find 'faiss/IndexPQ.h' faiss/faiss/python/swigfaiss.i:391: Error: Unable to find 'faiss/IndexResidual.h' faiss/faiss/python/swigfaiss.i:392: Error: Unable to find 'faiss/impl/io.h' faiss/faiss/python/swigfaiss.i:394: Error: Unable to find 'faiss/invlists/InvertedLists.h' faiss/faiss/python/swigfaiss.i:395: Error: Unable to find 'faiss/invlists/InvertedListsIOHook.h' faiss/faiss/python/swigfaiss.i:397: Error: Unable to find 'faiss/invlists/BlockInvertedLists.h' faiss/faiss/python/swigfaiss.i:398: Error: Unable to find 'faiss/invlists/DirectMap.h' faiss/faiss/python/swigfaiss.i:401: Error: Unable to find 'faiss/IndexIVF.h' faiss/faiss/python/swigfaiss.i:406: Error: Unable to find 'faiss/IVFlib.h' faiss/faiss/python/swigfaiss.i:407: Error: Unable to find 'faiss/impl/ScalarQuantizer.h' faiss/faiss/python/swigfaiss.i:408: Error: Unable to find 'faiss/IndexScalarQuantizer.h' faiss/faiss/python/swigfaiss.i:409: Error: Unable to find 'faiss/IndexIVFSpectralHash.h' faiss/faiss/python/swigfaiss.i:410: Error: Unable to find 'faiss/impl/HNSW.h' faiss/faiss/python/swigfaiss.i:411: Error: Unable to find 'faiss/IndexHNSW.h' faiss/faiss/python/swigfaiss.i:414: Error: Unable to find 'faiss/impl/NNDescent.h' faiss/faiss/python/swigfaiss.i:415: Error: Unable to find 'faiss/IndexNNDescent.h' faiss/faiss/python/swigfaiss.i:417: Error: Unable to find 'faiss/IndexIVFFlat.h' faiss/faiss/python/swigfaiss.i:418: Error: Unable to find 'faiss/impl/NSG.h' faiss/faiss/python/swigfaiss.i:419: Error: Unable to find 'faiss/IndexNSG.h' faiss/faiss/python/swigfaiss.i:424: Error: Unable to find 'faiss/invlists/OnDiskInvertedLists.h' faiss/faiss/python/swigfaiss.i:427: Error: Unable to find 'faiss/impl/lattice_Zn.h' faiss/faiss/python/swigfaiss.i:428: Error: Unable to find 'faiss/IndexLattice.h' faiss/faiss/python/swigfaiss.i:431: Error: Unable to find 'faiss/IndexIVFPQ.h' faiss/faiss/python/swigfaiss.i:432: Error: Unable to find 'faiss/IndexIVFPQR.h' faiss/faiss/python/swigfaiss.i:433: Error: Unable to find 'faiss/Index2Layer.h' faiss/faiss/python/swigfaiss.i:435: Error: Unable to find 'faiss/IndexPQFastScan.h' faiss/faiss/python/swigfaiss.i:436: Error: Unable to find 'faiss/IndexIVFPQFastScan.h' faiss/faiss/python/swigfaiss.i:437: Error: Unable to find 'faiss/utils/quantize_lut.h' faiss/faiss/python/swigfaiss.i:439: Error: Unable to find 'faiss/IndexBinary.h' faiss/faiss/python/swigfaiss.i:440: Error: Unable to find 'faiss/IndexBinaryFlat.h' faiss/faiss/python/swigfaiss.i:441: Error: Unable to find 'faiss/IndexBinaryIVF.h' faiss/faiss/python/swigfaiss.i:442: Error: Unable to find 'faiss/IndexBinaryFromFloat.h' faiss/faiss/python/swigfaiss.i:443: Error: Unable to find 'faiss/IndexBinaryHNSW.h' faiss/faiss/python/swigfaiss.i:444: Error: Unable to find 'faiss/IndexBinaryHash.h' faiss/faiss/python/swigfaiss.i:446: Error: Unable to find 'faiss/impl/ThreadedIndex.h' faiss/faiss/python/swigfaiss.i:450: Error: Unable to find 'faiss/IndexShards.h' faiss/faiss/python/swigfaiss.i:454: Error: Unable to find 'faiss/IndexReplicas.h' faiss/faiss/python/swigfaiss.i:458: Error: Unable to find 'faiss/MetaIndexes.h' faiss/faiss/python/swigfaiss.i:473: Error: Unable to find 'faiss/impl/AuxIndexStructures.h' faiss/faiss/python/swigfaiss.i:663: Error: Unable to find 'faiss/index_io.h' faiss/faiss/python/swigfaiss.i:664: Error: Unable to find 'faiss/clone_index.h' faiss/faiss/python/swigfaiss.i:668: Error: Unable to find 'faiss/AutoTune.h' faiss/faiss/python/swigfaiss.i:669: Error: Unable to find 'faiss/index_factory.h' faiss/faiss/python/swigfaiss.i:670: Error: Unable to find 'faiss/MatrixStats.h' error: command '/usr/bin/swig' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for faiss-cpu Running setup.py clean for faiss-cpu Failed to build faiss-cpu ERROR: Could not build wheels for faiss-cpu, which is required to install pyproject.toml-based projects