0

我安装了 python 3.5 和 2.7(我不知道这是否可能是问题),我需要使用 ZeroC Ice,当我这样做时:

sudo pip install ice

我在终端中收到以下错误:

Collecting ice
  Using cached ice-0.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-MoRI5C/ice/setup.py", line 32, in <module>
        import ice
      File "ice.py", line 46, in <module>
        import urllib.parse
    ImportError: No module named parse

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-MoRI5C/ice/

但是解析已经安装(我猜):

sudo -H pip install parse
Requirement already satisfied (use --upgrade to upgrade): parse in /usr/local/lib/python2.7/dist-packages

请问我该如何解决?

谢谢

4

1 回答 1

1

这是一个简单的错误,试试这个。

pip install zeroc-ice

这应该做正确的工作。

于 2016-10-11T16:32:29.627 回答