小编Dan*_*lYK的帖子

Python编译错误:“平台的LONG_BIT定义似乎错误”

此错误消息不是未知的,我已经重新安装了许多软件包,但到目前为止尚未找到解决方案。

我从命令中收到以下错误 pip install cryptography

/usr/include/python2.7/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

^
Run Code Online (Sandbox Code Playgroud)

在长回溯结束时,它说:

distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xXOpFq-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cryptography
Storing debug log for failure in /root/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)

python-dev,python2.7-dev和python3-dev存在。

python linux ubuntu gcc

5
推荐指数
1
解决办法
4949
查看次数

标签 统计

gcc ×1

linux ×1

python ×1

ubuntu ×1