suds包安装问题

时间:2015-04-30 06:46:44

标签: python suds

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

2 个答案:

答案 0 :(得分:2)

尝试

sudo pip install -I suds

根据this answer

答案 1 :(得分:1)

它是大写的Dim I as long i = 1 Do While Not RS.EOF if (i <=1) then f1 = nz(rs("firstname"),"") elseif i = rs.recordcount then f1 = f1 & " and " & RS("firstname") else f1 = f1 & ", " & RS("firstname") end if RS.MoveNext Loop 。你应该使用:

Client