简体   繁体   English

suds软件包安装问题

[英]Issue with suds package installation

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()

When i try to install it again getting below error 当我尝试再次安装它时,出现以下错误

sagarnig@sagarnig-HCL-Desktop:~$ sudo pip install suds Requirement already satisfied (use --upgrade to upgrade): suds in /usr/local/lib/python2.7/dist-packages Cleaning up... sagarnig @ sagarnig-HCL-Desktop:〜$ sudo pip install suds要求已经满足(使用--upgrade进行升级):/usr/local/lib/python2.7/dist-packages中的suds清理中...

after using -I 使用-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

Try 尝试

sudo pip install -I suds

As per this answer . 按照这个答案

It's the capitalized Client . 是大写的Client You should use: 您应该使用:

from suds.client import Client

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM