Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Ubuntu 16.04上安装Ice3.6 for Python时出错_Python_Ubuntu 16.04_Ice - Fatal编程技术网

在Ubuntu 16.04上安装Ice3.6 for Python时出错

在Ubuntu 16.04上安装Ice3.6 for Python时出错,python,ubuntu-16.04,ice,Python,Ubuntu 16.04,Ice,我试图通过pip为python安装Ice 3.6: 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 comma

我试图通过pip为python安装Ice 3.6:

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

我在python 2.7中使用了anaconda2

当我安装openssl时,问题就解决了

sudo apt-get install libssl-dev

当我安装openssl时,问题就解决了

sudo apt-get install libssl-dev

在尝试了在ubuntu上安装ice的各种解决方案之后,pip成功了。在尝试了在ubuntu上安装ice的各种解决方案之后,pip成功了