在使用pip install 安装第三方库shap,pycaret时报错。
查阅相关资料后,判断部分依赖需要sudo权限,无法自行解决,求助平台提供帮助
ERROR: Command errored out with exit status 1:
command: /opt/conda/envs/python35-paddle120-env/bin/python /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rsw_19qx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://mirror.baidu.com/pypi/simple/ --trusted-host mirror.baidu.com -- setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=8.0.0,<8.1.0' 'blis>=0.4.0,<0.8.0' pathy 'numpy>=1.15.0'
cwd: None
Complete output (110 lines):
Looking in indexes: https://mirror.baidu.com/pypi/simple/
Collecting setuptools
Downloading https://mirror.baidu.com/pypi/packages/15/0e/255e3d57965f318973e417d5b7034223f1223de500d91b945ddfaef42a37/setuptools-53.0.0-py3-none-any.whl (784kB)
Collecting cython>=0.25
Downloading https://mirror.baidu.com/pypi/packages/6b/36/d6c18632a339dafa54fd128b0dd2c36c6dc4bc86b8e0d366ccd9f22b480a/Cython-0.29.21-cp37-cp37m-manylinux1_x86_64.whl (2.0MB)
Collecting cymem<2.1.0,>=2.0.2
Downloading https://mirror.baidu.com/pypi/packages/3e/fb/5899a59ee8d0f02202c1f02fe47671e0c93d1812b1deb2491505718473da/cymem-2.0.5.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting preshed<3.1.0,>=3.0.2
Downloading https://mirror.baidu.com/pypi/packages/af/6e/0605ffc1c3861cce4d029a9724f302232f993fe9d0dc6c04fb7bc49b7852/preshed-3.0.5-cp37-cp37m-manylinux1_x86_64.whl (126kB)
Collecting murmurhash<1.1.0,>=0.28.0
Downloading https://mirror.baidu.com/pypi/packages/08/82/917eb137b3e85060e4f7c8dc991fccfafb47aa1f6f59fdd63f406159b03e/murmurhash-1.0.5-cp37-cp37m-manylinux1_x86_64.whl
Collecting thinc<8.1.0,>=8.0.0
Downloading https://mirror.baidu.com/pypi/packages/ac/15/282edb3e44d67c64d77dd94af9542e26fe7e5256fda8f2242b169bb146b0/thinc-8.0.1.tar.gz (619kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/conda/envs/python35-paddle120-env/bin/python /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-n98wum_y/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://mirror.baidu.com/pypi/simple/ --trusted-host mirror.baidu.com --trusted-host mirror.baidu.com -- setuptools 'cython>=0.25' 'murmurhash>=0.28.0,<1.1.0' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0'
cwd: None
Complete output (75 lines):
Looking in indexes: https://mirror.baidu.com/pypi/simple/
Collecting setuptools
Downloading https://mirror.baidu.com/pypi/packages/15/0e/255e3d57965f318973e417d5b7034223f1223de500d91b945ddfaef42a37/setuptools-53.0.0-py3-none-any.whl (784kB)
Collecting cython>=0.25
Downloading https://mirror.baidu.com/pypi/packages/6b/36/d6c18632a339dafa54fd128b0dd2c36c6dc4bc86b8e0d366ccd9f22b480a/Cython-0.29.21-cp37-cp37m-manylinux1_x86_64.whl (2.0MB)
Collecting murmurhash<1.1.0,>=0.28.0
Downloading https://mirror.baidu.com/pypi/packages/08/82/917eb137b3e85060e4f7c8dc991fccfafb47aa1f6f59fdd63f406159b03e/murmurhash-1.0.5-cp37-cp37m-manylinux1_x86_64.whl
Collecting cymem<2.1.0,>=2.0.2
Downloading https://mirror.baidu.com/pypi/packages/3e/fb/5899a59ee8d0f02202c1f02fe47671e0c93d1812b1deb2491505718473da/cymem-2.0.5.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting preshed<3.1.0,>=3.0.2
Downloading https://mirror.baidu.com/pypi/packages/af/6e/0605ffc1c3861cce4d029a9724f302232f993fe9d0dc6c04fb7bc49b7852/preshed-3.0.5-cp37-cp37m-manylinux1_x86_64.whl (126kB)
Collecting blis<0.8.0,>=0.4.0
Downloading https://mirror.baidu.com/pypi/packages/b1/54/b0de9905ee80aebd64c333bc112cacfe06849a9b5a7230a02dfde73e7aad/blis-0.7.4.tar.gz (2.8MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting numpy>=1.15.0
Downloading https://mirror.baidu.com/pypi/packages/3a/6c/322f6aa128179d0ea45a543a4e29a74da2317117109899cfd56d09bf3de0/numpy-1.20.0-cp37-cp37m-manylinux2010_x86_64.whl (15.3MB)
Building wheels for collected packages: cymem, blis
Building wheel for cymem (PEP 517): started
Building wheel for cymem (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/conda/envs/python35-paddle120-env/bin/python /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpr2ppqv4m
cwd: /tmp/pip-install-ahxaiknc/cymem
Complete output (21 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/cymem
copying cymem/about.py -> build/lib.linux-x86_64-3.7/cymem
copying cymem/__init__.py -> build/lib.linux-x86_64-3.7/cymem
package init file 'cymem/tests/__init__.py' not found (or not a regular file)
creating build/lib.linux-x86_64-3.7/cymem/tests
copying cymem/tests/test_import.py -> build/lib.linux-x86_64-3.7/cymem/tests
copying cymem/cymem.pyx -> build/lib.linux-x86_64-3.7/cymem
copying cymem/cymem.pxd -> build/lib.linux-x86_64-3.7/cymem
copying cymem/__init__.pxd -> build/lib.linux-x86_64-3.7/cymem
running build_ext
building 'cymem.cymem' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/cymem
gcc -pthread -B /opt/conda/envs/python35-paddle120-env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/python35-paddle120-env/include/python3.7m -I/opt/conda/envs/python35-paddle120-env/include/python3.7m -c cymem/cymem.cpp -o build/temp.linux-x86_64-3.7/cymem/cymem.o -O3 -Wno-strict-prototypes -Wno-unused-function
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cymem
Running setup.py clean for cymem
Building wheel for blis (PEP 517): started
Building wheel for blis (PEP 517): still running...
Building wheel for blis (PEP 517): still running...
Building wheel for blis (PEP 517): still running...
Building wheel for blis (PEP 517): still running...
Building wheel for blis (PEP 517): still running...
Building wheel for blis (PEP 517): still running...
Building wheel for blis (PEP 517): finished with status 'done'
Created wheel for blis: filename=blis-0.7.4-cp37-cp37m-linux_x86_64.whl size=9759672 sha256=89db2cc2977018ff8ba2f90f1e5735569e10527e1044b1c67b20030688cd7cc5
Stored in directory: /home/aistudio/.cache/pip/wheels/e1/63/1d/8749d0638b743ce28ea14d9bbbcd75776818a79e429cbaebd5
Successfully built blis
Failed to build cymem
ERROR: Could not build wheels for cymem which use PEP 517 and cannot be installed directly
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/envs/python35-paddle120-env/bin/python /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-n98wum_y/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://mirror.baidu.com/pypi/simple/ --trusted-host mirror.baidu.com --trusted-host mirror.baidu.com -- setuptools 'cython>=0.25' 'murmurhash>=0.28.0,<1.1.0' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0' Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/envs/python35-paddle120-env/bin/python /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rsw_19qx/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://mirror.baidu.com/pypi/simple/ --trusted-host mirror.baidu.com -- setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=8.0.0,<8.1.0' 'blis>=0.4.0,<0.8.0' pathy 'numpy>=1.15.0' Check the logs for full command output.
请说明一下这些package是干啥用的?
这个sharp非常迷,要自己下whl文件安装的
我猜是PaddleOCR相关
https://gitee.com/paddlepaddle/PaddleOCR/blob/dygraph/doc/doc_ch/installation.md
可以参考这个教程的最后一行