2017-01-10 180 views
1

爲Python安裝冰3.6我試圖通過PIP安裝冰3.6蟒蛇:錯誤在Ubuntu 16.04

pip install zeroc-ice 

,並得到這些錯誤:

Collecting zeroc-ice 
    Using cached zeroc-ice-3.6.3.tar.gz 
Building wheels for collected packages: zeroc-ice 
    Running setup.py bdist_wheel for zeroc-ice ... error 
    Complete output from command /home/phan/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-D__B7T/zeroc-ice/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpKbigqspip-wheel- --python-tag cp27: 
    WARNING: '' not a valid package name; please use only .-separated package names in setup.py 
... 
... 
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ 
    src/ice/cpp/src/IceUtil/SHA1.cpp:19:31: fatal error: openssl/sha.h: Aucun fichier ou dossier de ce type 
    compilation terminated. 
    error: command 'gcc' failed with exit status 1 

我用anaconda2爲Python 2.7。

+0

問題是解決了,PIP工作 –

回答

0

當我嘗試不同的解決方案,安裝在Ubuntu冰之後將OpenSSL安裝

sudo apt-get install libssl-dev