我安装了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
我该如何解决这个问题?
感谢
答案 0 :(得分:1)
这是一个简单的错误,请尝试这样做。
pip install zeroc-ice
这应该做正确的工作。