set PYTHONPATH=C:\Program Files\ZeroC\Ice-3.4.1\python
然后又提示
import IcePy
ImportError: DLL load failed: The specified module could not be found.
在网上看到别人是如下配置即可
C:\> set PATH=C:\Python26;C:\Program Files\ZeroC\Ice-3.4.1\bin;%PATH%
C:\> set PYTHONPATH=C:\Program Files\ZeroC\Ice-3.4.1\python
C:\> python
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Ice
>>>