2017-05-13 1 views
0

Twilio API를 사용하려고했는데 처음에는 많은 오류가있었습니다. 기존의 원조를 사용하여 몇 가지 오류를 좁힐 수있었습니다.Pip을 사용하여 Twilio를 설치하는 중 문제가 발생했습니다.

이 패키지를 어떻게 완전하게 설치해야합니까? 다른 정보를 알려 주시면 알려주세요. 감사.

writing requirements to src/cryptography.egg-info/requires.txt 
writing src/cryptography.egg-info/PKG-INFO 
writing top-level names to src/cryptography.egg-info/top_level.txt 
writing dependency_links to src/cryptography.egg-info/dependency_links.txt 
writing entry points to src/cryptography.egg-info/entry_points.txt 
warning: manifest_maker: standard file '-c' not found 

reading manifest file 'src/cryptography.egg-info/SOURCES.txt' 
reading manifest template 'MANIFEST.in' 
no previously-included directories found matching 'docs/_build' 
warning: no previously-included files matching '*' found under directory 'vectors' 
writing manifest file 'src/cryptography.egg-info/SOURCES.txt' 
running build_ext 
generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c' 
creating build/temp.linux-x86_64-2.7 
generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c' 
generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c' 
building '_openssl' extension 
creating build/temp.linux-x86_64-2.7/build 
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7 
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o 
build/temp.linux-x86_64-2.7/_openssl.c:12:24: fatal error: pyconfig.h: No such file or directory 
# include <pyconfig.h> 
         ^
compilation terminated. 
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 

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

Command "/usr/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build- 
GnLJmL/cryptography/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-o1QjZ3-record/install-record.txt --single-version- 
externally-managed --compile" failed with error code 1 in /tmp/pip- 
build-GnLJmL/cryptography/ 

편집 : 이전 버전은 libpython이 필요했으며 이것은 일반적인 질문이 아니므로 지금 당장 닫을 것입니다. 감사합니다 스택 오버플로.

답변

2

fatal error: pyconfig.h: No such file or directory

데비안, 우분투 : sudo apt install libpython2.7-dev

페도라, CentOS는 : # yum install python-devel (뉴 페도라 : dnf install ....)

+0

감사 톤, 마법처럼 일했다. –

관련 문제