报错WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.

[root@localhost seafile-server-7.1.5]# pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.3.8 psd-tools django-pylibmc django-simple-captcha
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting Pillow
Downloading https://mirrors.aliyun.com/pypi/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4MB)
100% |████████████████████████████████| 49.4MB 14.8MB/s
Collecting pylibmc
Downloading https://mirrors.aliyun.com/pypi/packages/e2/f2/81b7fbd316e1490bda25faf38693dcd1f33a82730d8fc8a50ce13d204430/pylibmc-1.6.2.tar.gz (63kB)
100% |████████████████████████████████| 71kB 80.2MB/s
Collecting captcha
Downloading https://mirrors.aliyun.com/pypi/packages/11/b0/a5125b88c185586afc64ea6af894eab996de4ef28c395dcdf4a7818a9098/captcha-0.4-py3-none-any.whl (102kB)
100% |████████████████████████████████| 112kB 76.8MB/s
Collecting jinja2
Downloading https://mirrors.aliyun.com/pypi/packages/20/9a/e5d9ec41927401e41aea8af6d16e78b5e612bca4699d417f646a9610a076/Jinja2-3.0.3-py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 26.8MB/s
Collecting sqlalchemy==1.3.8
Downloading https://mirrors.aliyun.com/pypi/packages/fc/49/82d64d705ced344ba458197dadab30cfa745f9650ee22260ac2b275d288c/SQLAlchemy-1.3.8.tar.gz (5.9MB)
100% |████████████████████████████████| 5.9MB 1.7MB/s
Collecting psd-tools
Downloading https://mirrors.aliyun.com/pypi/packages/da/13/629beeb0509ba9e33c55319dcd2126126a98ab69d1133b788ab0431f8096/psd-tools-1.9.21.tar.gz (128kB)
100% |████████████████████████████████| 133kB 17.8MB/s
Collecting django-pylibmc
Downloading https://mirrors.aliyun.com/pypi/packages/1b/2b/cbc55be77062f783b2a28dcc0aa6bb8f55ebbbf2c186b76e58ea79e25ee5/django_pylibmc-0.6.1-py2.py3-none-any.whl
Collecting django-simple-captcha
Downloading https://mirrors.aliyun.com/pypi/packages/5c/2b/e7dd7a1c772f722c1fecd0dac495e9a19499cd94677fb3c2e689bccbd289/django_simple_captcha-0.5.17-py2.py3-none-any.whl (93kB)
100% |████████████████████████████████| 102kB 78.1MB/s
Collecting MarkupSafe>=2.0 (from jinja2)
Downloading https://mirrors.aliyun.com/pypi/packages/fc/d6/57f9a97e56447a1e340f8574836d3b636e2c14de304943836bd645fa9c7e/MarkupSafe-2.0.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting docopt>=0.5 (from psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Collecting attrs>=19.2.0 (from psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/f2/bc/d817287d1aa01878af07c19505fafd1165cd6a119e9d0821ca1d1c20312d/attrs-22.1.0-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 75.0MB/s
Collecting aggdraw (from psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/85/6d/acca23d706fa847bd03794b2326a897808a5c346543cc4d536888c83c3d2/aggdraw-1.3.14.tar.gz (259kB)
100% |████████████████████████████████| 266kB 11.0MB/s
Collecting numpy (from psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/45/b2/6c7545bb7a38754d63048c7696804a0d947328125d81bf12beaa692c3ae3/numpy-1.19.5-cp36-cp36m-manylinux1_x86_64.whl (13.4MB)
100% |████████████████████████████████| 13.4MB 4.9MB/s
Collecting scipy (from psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/c8/89/63171228d5ced148f5ced50305c89e8576ffc695a90b58fe5bb602b910c2/scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl (25.9MB)
100% |████████████████████████████████| 25.9MB 9.8MB/s
Collecting scikit-image (from psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/0e/ba/53e1bfbdfd0f94514d71502e3acea494a8b4b57c457adbc333ef386485da/scikit_image-0.17.2-cp36-cp36m-manylinux1_x86_64.whl (12.4MB)
100% |████████████████████████████████| 12.4MB 12.5MB/s
Collecting Django>=2.2 (from django-simple-captcha)
Downloading https://mirrors.aliyun.com/pypi/packages/db/f9/9ddc8444397ed7e72c52f63b48ecc2849ae1ca4d621776399a81e501ee3c/Django-3.2.15-py3-none-any.whl (7.9MB)
100% |████████████████████████████████| 7.9MB 1.7MB/s
Collecting django-ranged-response==0.2.0 (from django-simple-captcha)
Downloading https://mirrors.aliyun.com/pypi/packages/70/e3/9372fcdca8e9c3205e7979528ccd1a14354a9a24d38efff11c1846ff8bf1/django-ranged-response-0.2.0.tar.gz
Collecting matplotlib!=3.0.0,>=2.0.0 (from scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/09/03/b7b30fa81cb687d1178e085d0f01111ceaea3bf81f9330c937fb6f6c8ca0/matplotlib-3.3.4-cp36-cp36m-manylinux1_x86_64.whl (11.5MB)
100% |████████████████████████████████| 11.5MB 10.7MB/s
Collecting networkx>=2.0 (from scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/f3/b7/c7f488101c0bb5e4178f3cde416004280fd40262433496830de8a8c21613/networkx-2.5.1-py3-none-any.whl (1.6MB)
100% |████████████████████████████████| 1.6MB 14.3MB/s
Collecting PyWavelets>=1.1.1 (from scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/59/bb/d2b85265ec9fa3c1922210c9393d4cdf7075cc87cce6fe671d7455f80fbc/PyWavelets-1.1.1-cp36-cp36m-manylinux1_x86_64.whl (4.4MB)
100% |████████████████████████████████| 4.4MB 8.3MB/s
Collecting imageio>=2.3.0 (from scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/58/fc/1547b93534279bbf2de88f7c4a88975a65cecafd32c2bd3c518b2054ef76/imageio-2.16.0-py3-none-any.whl (3.3MB)
100% |████████████████████████████████| 3.3MB 16.5MB/s
Collecting tifffile>=2019.7.26 (from scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/42/6b/93a8ee61c6fbe20fa9c17928bd3b80484902b7fd454cecaffba42f5052cb/tifffile-2020.9.3-py3-none-any.whl (148kB)
100% |████████████████████████████████| 153kB 28.3MB/s
Collecting pytz (from Django>=2.2->django-simple-captcha)
Downloading https://mirrors.aliyun.com/pypi/packages/d5/50/54451e88e3da4616286029a3a17fc377de817f66a0f50e1faaee90161724/pytz-2022.2.1-py2.py3-none-any.whl (500kB)
100% |████████████████████████████████| 501kB 15.2MB/s
Collecting sqlparse>=0.2.2 (from Django>=2.2->django-simple-captcha)
Downloading https://mirrors.aliyun.com/pypi/packages/05/40/d836d55fb3f467243ee839ab7b814822fda522cd395fa41e282684e71ee5/sqlparse-0.4.2-py3-none-any.whl (42kB)
100% |████████████████████████████████| 51kB 73.8MB/s
Collecting asgiref<4,>=3.3.2 (from Django>=2.2->django-simple-captcha)
Downloading https://mirrors.aliyun.com/pypi/packages/fe/66/577f32b54c50dcd8dec38447258e82ed327ecb86820d67ae7b3dea784f13/asgiref-3.4.1-py3-none-any.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl (98kB)
100% |████████████████████████████████| 102kB 68.8MB/s
Collecting python-dateutil>=2.1 (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
100% |████████████████████████████████| 256kB 17.1MB/s
Collecting kiwisolver>=1.0.1 (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/a7/1b/cbd8ae738719b5f41592a12057ef5442e2ed5f5cb5451f8fc7e9f8875a1a/kiwisolver-1.3.1-cp36-cp36m-manylinux1_x86_64.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 12.8MB/s
Collecting cycler>=0.10 (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/5c/f9/695d6bedebd747e5eb0fe8fad57b72fdf25411273a39791cde838d5a8f51/cycler-0.11.0-py3-none-any.whl
Collecting decorator<5,>=4.3 (from networkx>=2.0->scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl
Collecting typing-extensions; python_version < “3.8” (from asgiref<4,>=3.3.2->Django>=2.2->django-simple-captcha)
Downloading https://mirrors.aliyun.com/pypi/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl
Collecting six>=1.5 (from python-dateutil>=2.1->matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
Downloading https://mirrors.aliyun.com/pypi/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Installing collected packages: Pillow, pylibmc, captcha, MarkupSafe, jinja2, sqlalchemy, docopt, attrs, aggdraw, numpy, scipy, pyparsing, six, python-dateutil, kiwisolver, cycler, matplotlib, decorator, networkx, PyWavelets, imageio, tifffile, scikit-image, psd-tools, django-pylibmc, pytz, sqlparse, typing-extensions, asgiref, Django, django-ranged-response, django-simple-captcha
Running setup.py install for Pillow … done
Running setup.py install for pylibmc … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-5olordhr/pylibmc/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-jdz7j850-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pylibmc
copying src/pylibmc/init.py → build/lib.linux-x86_64-3.6/pylibmc
copying src/pylibmc/main.py → build/lib.linux-x86_64-3.6/pylibmc
copying src/pylibmc/autoconf.py → build/lib.linux-x86_64-3.6/pylibmc
copying src/pylibmc/client.py → build/lib.linux-x86_64-3.6/pylibmc
copying src/pylibmc/consts.py → build/lib.linux-x86_64-3.6/pylibmc
copying src/pylibmc/pools.py → build/lib.linux-x86_64-3.6/pylibmc
copying src/pylibmc/test.py → build/lib.linux-x86_64-3.6/pylibmc
running build_ext
building ‘_pylibmc’ extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_ZLIB -I/usr/include/python3.6m -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.6/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
In file included from src/_pylibmcmodule.c:34:0:
src/_pylibmcmodule.h:42:36: 致命错误:libmemcached/memcached.h:没有那个文件或目录
#include <libmemcached/memcached.h>
^
编译中断。
error: command ‘gcc’ failed with exit status 1

----------------------------------------

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-5olordhr/pylibmc/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-jdz7j850-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-5olordhr/pylibmc/
[root@localhost seafile-server-7.1.5]# yum install python3-devel
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile

请问有遇到过这类问题的朋友吗

试试 yum install libmemcached-devel

确实通过yum install libmemcached-devel libmemcached解决了。