【发布时间】:2015-07-09 17:58:02
【问题描述】:
Trying below code to check suds working
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from suds.client import Client
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "suds.py", line 2, in <module>
from suds.client import Client
ImportError: No module named client
>>> exit()
当我再次尝试安装时出现以下错误
sagarnig@sagarnig-HCL-Desktop:~$ sudo pip install suds 已满足要求(使用 --upgrade 升级):/usr/local/lib/python2.7/dist-packages 中的 suds 清理...
使用-I后
sagarnig@sagarnig-HCL-Desktop:~$ sudo pip install -I suds
[sudo] password for sagarnig:
Downloading/unpacking suds
Downloading suds-0.4.tar.gz (104kB): 104kB downloaded
Running setup.py (path:/tmp/pip_build_root/suds/setup.py) egg_info for package suds
Installing collected packages: suds
Running setup.py install for suds
/usr/bin/python -O /tmp/tmpmktuLL.py
removing /tmp/tmpmktuLL.py
Successfully installed suds
Cleaning up...
sagarnig@sagarnig-HCL-Desktop:~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from suds.client import Client
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "suds.py", line 2, in <module>
from suds.client import Client
ImportError: No module named client
【问题讨论】: