首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从PyPI安装Cloudify -错误

从PyPI安装Cloudify -错误
EN

Stack Overflow用户
提问于 2015-11-01 20:45:56
回答 1查看 281关注 0票数 0

我正在使用链接http://getcloudify.org/guide/3.2/installation.html#installing-from-pypi,但在运行"sudo pip install cloudify==3.2“命令时,出现以下错误:

代码语言:javascript
复制
...
    checking for uint8_t... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for memmove... yes
    checking for memset... yes
    configure: creating ./config.status
    config.status: creating src/config.h
    warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
    building 'Crypto.Hash._MD2' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/src
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o
    src/MD2.c:31:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-8ZRUY3/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-JeNRYe-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-8ZRUY3/pycrypto
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

下面列出了版本:

代码语言:javascript
复制
(cloudify)ubuntu@ip-172-30-2-253:~$ python --version
Python 2.7.6

(cloudify)ubuntu@ip-172-30-2-253:~$ pip --version
pip 1.5.4 from /home/ubuntu/cloudify/local/lib/python2.7/site-packages (python 2.7)

(cloudify)ubuntu@ip-172-30-2-253:~$ virtualenv --version
1.11.4
EN

回答 1

Stack Overflow用户

发布于 2015-11-01 21:42:14

看起来你缺少一些先决条件。

我建议您检查以下所有内容:

  1. 更新您的系统$sudo apt-get更新
  2. 安装所需的库

python apt-get install $sudo -dev gcc

  • 更新pip版本

$sudo apt-获取安装pip

  • 更新virtualenv版本

$ sudo pip安装virtualenv

检查完成后,您应该尝试安装Cloudify:

代码语言:javascript
复制
    $pip install cloudify==3.2.1
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33462287

复制
相关文章

相似问题

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