当前位置:   article > 正文

Failed to build gevent Could not build wheels for gevent which use PEP 517 ... ...

failed to build gevent
  1. (venv) [root@jalen opt]# pip install -r sfs/requirements.txt
  2. ... ...
  3. ... ...
  4. ... ...
  5. Building wheel for gevent (PEP 517) ... error
  6. ERROR: Command errored out with exit status 1:
  7. command: /opt/venv/bin/python3 /opt/venv/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpo99kgt3g
  8. cwd: /tmp/pip-install-omlwwepw/gevent_c4622d7b40544f0cbd97eb7ee7291aaa
  9. Complete output (300 lines):
  10. running bdist_wheel
  11. running build
  12. running build_py
  13. creating build
  14. creating build/lib.linux-x86_64-3.6
  15. creating build/lib.linux-x86_64-3.6/gevent
  16. copying src/gevent/__init__.py -> build/lib.linux-x86_64-3.6/gevent
  17. copying src/gevent/_abstract_linkable.py -> build/lib.linux-x86_64-3.6/gevent
  18. copying src/gevent/_compat.py -> build/lib.linux-x86_64-3.6/gevent
  19. ... ...
  20. ... ...
  21. copying src/gevent/tests/server.key -> build/lib.linux-x86_64-3.6/gevent/tests
  22. copying src/gevent/tests/test_server.key -> build/lib.linux-x86_64-3.6/gevent/tests
  23. running build_ext
  24. generating cffi module 'build/temp.linux-x86_64-3.6/gevent.libuv._corecffi.c'
  25. creating build/temp.linux-x86_64-3.6
  26. Running '(cd "/tmp/pip-install-omlwwepw/gevent_c4622d7b40544f0cbd97eb7ee7291aaa/deps/libev" && sh ./configure -C > configure-output.txt )' in /tmp/pip-install-omlwwepw/gevent_c4622d7b40544f0cbd97eb7ee7291aaa
  27. generating cffi module 'build/temp.linux-x86_64-3.6/gevent.libev._corecffi.c'
  28. Not configuring libev, 'config.h' already exists
  29. Not configuring libev, 'config.h' already exists
  30. building 'gevent.libev.corecext' extension
  31. creating build/temp.linux-x86_64-3.6/src
  32. creating build/temp.linux-x86_64-3.6/src/gevent
  33. creating build/temp.linux-x86_64-3.6/src/gevent/libev
  34. 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 -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -DEV_USE_REALTIME=1 -DEV_USE_MONOTONIC=1 -DEV_USE_FLOOR=1 -Isrc/gevent/libev -I/usr/include/python3.6m -I/opt/venv/include/python3.6m -I/tmp/pip-install-omlwwepw/gevent_c4622d7b40544f0cbd97eb7ee7291aaa/deps -I/tmp/pip-install-omlwwepw/gevent_c4622d7b40544f0cbd97eb7ee7291aaa/src/gevent/libev -I/tmp/pip-install-omlwwepw/gevent_c4622d7b40544f0cbd97eb7ee7291aaa/deps/libev -Isrc/gevent -Isrc/gevent/libev -Isrc/gevent/resolver -I. -I/usr/include/python3.6m -c src/gevent/libev/corecext.c -o build/temp.linux-x86_64-3.6/src/gevent/libev/corecext.o
  35. src/gevent/libev/corecext.c:91:20: fatal error: Python.h: No such file or directory
  36. #include "Python.h"
  37. ^
  38. compilation terminated.
  39. error: command 'gcc' failed with exit status 1
  40. ----------------------------------------
  41. ERROR: Failed building wheel for gevent
  42. Building wheel for pyrsistent (setup.py) ... done
  43. Created wheel for pyrsistent: filename=pyrsistent-0.17.3-cp36-cp36m-linux_x86_64.whl size=55876 sha256=3007376edec8d870de841a49a5b7aa075810771df6ff8e3af9cb818d47673461
  44. Stored in directory: /root/.cache/pip/wheels/34/13/19/294da8e11bce7e563afee51251b9fa878185e14f4b5caf00cb
  45. Building wheel for PyYAML (setup.py) ... done
  46. Created wheel for PyYAML: filename=PyYAML-5.3.1-cp36-cp36m-linux_x86_64.whl size=44621 sha256=d9b322488a3b9f9e11abef107f4d64c2763cd0c4d8068bd51e35442908e7c661
  47. Stored in directory: /root/.cache/pip/wheels/e5/9d/ad/2ee53cf262cba1ffd8afe1487eef788ea3f260b7e6232a80fc
  48. Building wheel for flask-apscheduler (setup.py) ... done
  49. Created wheel for flask-apscheduler: filename=Flask_APScheduler-1.11.0-py3-none-any.whl size=18953 sha256=07d964c194edb64a882a385c4c36597584deb9427c175c6d12b864d031de4fed
  50. Stored in directory: /root/.cache/pip/wheels/b2/22/78/e72344262e38a3ddcef6d0fc0bff1a73760a18fa47f8f6a151
  51. Building wheel for visitor (setup.py) ... done
  52. Created wheel for visitor: filename=visitor-0.1.3-py3-none-any.whl size=3929 sha256=a495e29d2e65e489655370f29a9fb823d8a8b6e03755c5b6ecd2da428a7b4676
  53. Stored in directory: /root/.cache/pip/wheels/a9/77/93/3b8a22ac46f57a22d0fd7b4912fff740bcbddbd720bd48508e
  54. Successfully built business-duration flask-compress itsdangerous nltk flask-bootstrap Flask-Script pyrsistent PyYAML flask-apscheduler visitor
  55. Failed to build gevent
  56. ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly
  57. (venv) [root@jalen opt]# pip install gevent==20.6.2
  58. (venv) [root@jalen opt]# pip list
  59. Package Version
  60. -------------------- ----------
  61. ... ...
  62. Flask 1.1.2
  63. gevent 20.6.2
  64. gunicorn 20.0.4
  65. MarkupSafe 1.0
  66. pip 20.2.3
  67. setuptools 45.2.0
  68. srsly 1.0.5
  69. Werkzeug 1.0.1
  70. wheel 0.36.2
  71. ... ...
  72. WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
  73. You should consider upgrading via the '/opt/venv/bin/python3 -m pip install --upgrade pip' command.
  74. (venv) [root@jalen opt]#

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/946948?site
推荐阅读
相关标签
  

闽ICP备14008679号