简体   繁体   English

Python - suds - 没有模块

[英]Python - suds - no module

I've installed Python 2.7.1, setuptools and suds 0.4. 我安装了Python 2.7.1,setuptools和suds 0.4。

When running my script, I'm having the following error: 运行我的脚本时,我遇到以下错误:

Traceback (most recent call last): File "C:\\Python27\\test.py", line 5, in from suds.client import Client # suds soap client ImportError: No module named suds.client 回溯(最近一次调用最后一次):文件“C:\\ Python27 \\ test.py”,第5行,来自suds.client import客户端#suds soap client ImportError:没有名为suds.client的模块

It looks like Python can't find the suds library. 看起来Python无法找到suds库。 But I can't understand why ... 但我不明白为什么......

Any help would be greatly appreciate. 任何帮助都会非常感激。

Also, it looks like suds isn't maintained. 此外,它似乎不保持肥皂水。 What are you using to call your web services using Python? 你用什么来用Python调用你的web服务?

Sounds like suds is not actually installed. 听起来像suds实际上并没有安装。

Since you have setuptools, try: 由于您有setuptools,请尝试:

easy_install https://fedorahosted.org/releases/s/u/suds/python-suds-0.4.tar.gz

For ease of installation and bug fixing , i put the suds folder from suds-jurko (and ntlm folder from python-ntlm ) next to the main.py file of my new maintenance tool. 为了便于安装和臭虫 固定 ,我把suds的文件夹,从泡-jurko (和ntlm文件夹从蟒蛇,NTLM )旁边的main.py的我的新的维护工具文件。 That way a minimum of specialist knowledge is required to install it: 这样,安装它需要最少的专业知识:

  1. Unzip Tool.zip to C:\\ Tool.zip解压缩到C:\\
  2. Run C:\\Tool\\Tool.bat 运行C:\\Tool\\Tool.bat

I could probably put the required Python interpreter in there, as well. 我也可以将所需的Python解释器放在那里。 That's how many Python "compilers" work. 这就是有多少 Python“编译器”的工作原理。

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

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