ERROR: Failed building wheel for pyOpenSSL|OpenSSL/crypto/crypto.c:14:20: fatal error: Python.h: No

 

  Building wheel for pyOpenSSL (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-Z8y8UJ/pyOpenSSL/setup.py'"'"'; __file__='"'"'/tmp/pip-install-Z8y8UJ/pyOpenSSL/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-K_HV6Q
       cwd: /tmp/pip-install-Z8y8UJ/pyOpenSSL/
  Complete output (24 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/OpenSSL
  copying OpenSSL/__init__.py -> build/lib.linux-x86_64-2.7/OpenSSL
  copying OpenSSL/tsafe.py -> build/lib.linux-x86_64-2.7/OpenSSL
  copying OpenSSL/version.py -> build/lib.linux-x86_64-2.7/OpenSSL
  creating build/lib.linux-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/__init__.py -> build/lib.linux-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/util.py -> build/lib.linux-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/test_crypto.py -> build/lib.linux-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/test_rand.py -> build/lib.linux-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/test_ssl.py -> build/lib.linux-x86_64-2.7/OpenSSL/test
  running build_ext
  building 'OpenSSL.crypto' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/OpenSSL
  creating build/temp.linux-x86_64-2.7/OpenSSL/crypto
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.linux-x86_64-2.7/OpenSSL/crypto/crypto.o
  OpenSSL/crypto/crypto.c:14:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyOpenSSL

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章