【问题标题】:Trouble installing Twilio using Pip使用 Pip 安装 Twilio 时遇到问题
【发布时间】:2017-10-12 14:59:38
【问题描述】:

所以,我尝试使用 Twilio API,但最初它显示了很多错误。使用现有的帮助,我可以缩小一些错误的范围。

我应该如何完全安装这个包?如果我可以分享任何其他信息,请告诉我。谢谢。

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 的,这不是一个真正的通用问题,所以我现在将其关闭。感谢堆栈溢出。

【问题讨论】:

    标签: linux python-2.7 api pip twilio


    【解决方案1】:

    致命错误:pyconfig.h:没有这样的文件或目录

    Debian、Ubuntu:sudo apt install libpython2.7-dev

    Fedora、CentOS:#yum install python-devel(新的 Fedora:dnf install ....

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-16
      • 2020-08-27
      • 2022-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-15
      相关资源
      最近更新 更多