Installing Cloudify From PyPI - ERROR -
i following link http://getcloudify.org/guide/3.2/installation.html#installing-from-pypi, when running command "sudo pip install cloudify==3.2", error occurs below:
... checking uint8_t... yes checking stdlib.h... (cached) yes checking gnu libc compatible malloc... yes checking memmove... yes checking 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 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 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: true sslcontext object not available. prevents urllib3 configuring ssl appropriately , may cause ssl connections fail. more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. insecureplatformwarning
below list versions:
(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 /home/ubuntu/cloudify/local/lib/python2.7/site-packages (python 2.7) (cloudify)ubuntu@ip-172-30-2-253:~$ virtualenv --version 1.11.4
it seems lack prerequisites.
i suggest check of followings:
update system
$sudo apt-get update
install needed libraries
$sudo apt-get install python-dev gcc
update pip version
$sudo apt-get install pip
update virtualenv version
$ sudo pip install virtualenv
after checked should try install cloudify:
$pip install cloudify==3.2.1
Comments
Post a Comment