Ubuntu20 captcha jinja2 有错误 求助


#1

运行 ```
pip3 install --timeout=3600 django==2.2.* future mysqlclient pymysql Pillow pylibmc \ captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha

最后会出现2个错误;

 Building wheel for pylibmc (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mjt9u8q4/pylibmc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mjt9u8q4/pylibmc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-mx_xtmkc
       cwd: /tmp/pip-install-mjt9u8q4/pylibmc/
  Complete output (28 lines):
  /tmp/pip-install-mjt9u8q4/pylibmc/setup.py:98: DeprecationWarning: 'U' mode is deprecated
    with open("README.rst", "U", encoding="utf-8") as r:
  /tmp/pip-install-mjt9u8q4/pylibmc/setup.py:100: DeprecationWarning: 'U' mode is deprecated
    with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/pylibmc
  copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-3.8/pylibmc
  copying src/pylibmc/autoconf.py -> build/lib.linux-x86_64-3.8/pylibmc
  copying src/pylibmc/pools.py -> build/lib.linux-x86_64-3.8/pylibmc
  copying src/pylibmc/client.py -> build/lib.linux-x86_64-3.8/pylibmc
  copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-3.8/pylibmc
  copying src/pylibmc/test.py -> build/lib.linux-x86_64-3.8/pylibmc
  copying src/pylibmc/consts.py -> build/lib.linux-x86_64-3.8/pylibmc
  running build_ext
  building '_pylibmc' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/src
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_ZLIB -I/usr/include/python3.8 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.8/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
  In file included from src/_pylibmcmodule.c:34:
  src/_pylibmcmodule.h:42:10: fatal error: libmemcached/memcached.h: No such file or directory
     42 | #include <libmemcached/memcached.h>
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pylibmc
  Running setup.py clean for pylibmc
Failed to build pylibmc
Installing collected packages: pylibmc, captcha, greenlet, sqlalchemy, numpy, scipy, tifffile, python-dateutil, cycler, kiwisolver, pyparsing, matplotlib, decorator, networkx, PyWavelets, imageio, scikit-image, aggdraw, docopt, psd-tools, django-pylibmc, django-ranged-response, django-simple-captcha
    Running setup.py install for pylibmc ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mjt9u8q4/pylibmc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mjt9u8q4/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-record-flg6d578/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/pylibmc
         cwd: /tmp/pip-install-mjt9u8q4/pylibmc/
    Complete output (28 lines):
    /tmp/pip-install-mjt9u8q4/pylibmc/setup.py:98: DeprecationWarning: 'U' mode is deprecated
      with open("README.rst", "U", encoding="utf-8") as r:
    /tmp/pip-install-mjt9u8q4/pylibmc/setup.py:100: DeprecationWarning: 'U' mode is deprecated
      with open("src/pylibmc-version.h", "U", encoding="utf-8") as r:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/pylibmc
    copying src/pylibmc/__init__.py -> build/lib.linux-x86_64-3.8/pylibmc
    copying src/pylibmc/autoconf.py -> build/lib.linux-x86_64-3.8/pylibmc
    copying src/pylibmc/pools.py -> build/lib.linux-x86_64-3.8/pylibmc
    copying src/pylibmc/client.py -> build/lib.linux-x86_64-3.8/pylibmc
    copying src/pylibmc/__main__.py -> build/lib.linux-x86_64-3.8/pylibmc
    copying src/pylibmc/test.py -> build/lib.linux-x86_64-3.8/pylibmc
    copying src/pylibmc/consts.py -> build/lib.linux-x86_64-3.8/pylibmc
    running build_ext
    building '_pylibmc' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/src
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE_ZLIB -I/usr/include/python3.8 -c src/_pylibmcmodule.c -o build/temp.linux-x86_64-3.8/src/_pylibmcmodule.o -fno-strict-aliasing -std=c99
    In file included from src/_pylibmcmodule.c:34:
    src/_pylibmcmodule.h:42:10: fatal error: libmemcached/memcached.h: No such file or directory
       42 | #include <libmemcached/memcached.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mjt9u8q4/pylibmc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mjt9u8q4/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-record-flg6d578/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/pylibmc Check the logs for full command output.

求问什么问题,如何解决?