首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为Python3安装Charm-Crypto时出现问题

为Python3安装Charm-Crypto时出现问题
EN

Stack Overflow用户
提问于 2019-01-17 18:01:32
回答 1查看 1.5K关注 0票数 1

各位程序员好,目前我正在尝试在我的Ubuntu上安装Charm-Crypto 0.43。不幸的是,似乎什么都不起作用。我尝试了链接的手动安装,以及pip install charm-crypto

我总是收到这个错误日志:

代码语言:javascript
运行
复制
[...]
running build_ext
    building 'charm.core.math.pairing' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/charm
    creating build/temp.linux-x86_64-3.6/charm/core
    creating build/temp.linux-x86_64-3.6/charm/core/math
    creating build/temp.linux-x86_64-3.6/charm/core/math/pairing
    creating build/temp.linux-x86_64-3.6/charm/core/utilities
    creating build/temp.linux-x86_64-3.6/charm/core/benchmark
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBENCHMARK_ENABLED=1 -Icharm/core/utilities/ -Icharm/core/benchmark/ -I/usr/include/python3.6m -I/home/debbi/Documents/env/01_chainmed/include/python3.6m -c charm/core/math/pairing/pairingmodule.c -o build/temp.linux-x86_64-3.6/charm/core/math/pairing/pairingmodule.o
    In file included from charm/core/math/pairing/pairingmodule.c:30:0:
    charm/core/math/pairing/pairingmodule.h:38:10: fatal error: pbc/pbc.h: No such file or directory
     #include <pbc/pbc.h>
              ^~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/debbi/Documents/env/01_chainmed/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wfcawqbr/charm-crypto/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-record-pfeoo7we/install-record.txt --single-version-externally-managed --compile --install-headers /home/debbi/Documents/env/01_chainmed/include/site/python3.6/charm-crypto" failed with error code 1 in /tmp/pip-install-wfcawqbr/charm-crypto/

我尝试了所有建议安装的python-dev和libssl等,我可以通过谷歌找到(thisand thisand this,只是命名一个视图)。我也尝试过使用python2.7和3.6来安装它,不幸的是,在我身上什么都不能用。

也许有人知道这个问题?

提前感谢您的宝贵时间。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-22 17:18:25

有这样一个网站:http://pages.cs.wisc.edu/~ace/install-charm.html只需按照说明操作,但对我来说,我必须手动查看Charm-0.50dev分支,然后安装这个版本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54233351

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档