当前位置: 首页 > 工具软件 > Suds > 使用案例 >

Python3.6安装suds报错,需要安装suds-jurko

唐宏壮
2023-12-01

python3.6.5安装suds报错

C:\Users\Administrator>pip install suds
Collecting suds
  Downloading https://files.pythonhosted.org/packages/bc/d6/960acce47ee6f096345f
e5a7d9be7708135fd1d0713571836f073efc7393/suds-0.4.tar.gz (104kB)
     |███████████████████             | 61kB 72kB/s eta 0:00:
     |██████████████████████          | 71kB 65kB/s eta 0:
     |█████████████████████████       | 81kB 65kB/s eta
     |████████████████████████████▌   | 92kB 60kB/s
     |███████████████████████████████▌| 102kB 61
     |████████████████████████████████| 112kB 61
kB/s
    ERROR: Command errored out with exit status 1:
     command: 'c:\python36\python.exe' -c 'import sys, setuptools, tokenize; sys
.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-9npz7fmk\
\suds\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\p
ip-install-9npz7fmk\\suds\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', ope
n)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(
compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ADMINI~1
\AppData\Local\Temp\pip-install-9npz7fmk\suds\pip-egg-info'
         cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-9npz7fmk\suds\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-9npz7fmk\suds\setup
.py", line 20, in <module>
        import suds
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-9npz7fmk\suds\suds\
__init__.py", line 154, in <module>
        import client
    ModuleNotFoundError: No module named 'client'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.

Python3.x版本,需要用suds-jurko,此库代替suds实现python对webservice接口的调用

安装命令

pip install suds-jurko

C:\Users\Administrator>pip install suds-jurko
Collecting suds-jurko
  Downloading suds-jurko-0.6.tar.bz2 (143 kB)
     |█████████████▌                  | 61 kB 393 kB/s eta 0:00:01
     |████████████████                | 71 kB 383 kB/s eta 0:00:
     |██████████████████              | 81 kB 438 kB/s eta 0:0
     |████████████████████▌           | 92 kB 422 kB/s eta
     |███████████████████████         | 102 kB 469 kB/s e
     |█████████████████████████       | 112 kB 469 kB/s
     |███████████████████████████     | 122 kB 469 kB
     |█████████████████████████████▌  | 133 kB 469
     |████████████████████████████████| 143 kB 4
     |████████████████████████████████| 143 kB 4
69 kB/s
Using legacy setup.py install for suds-jurko, since package 'wheel' is not insta
lled.
Installing collected packages: suds-jurko
    Running setup.py install for suds-jurko ... done
Successfully installed suds-jurko-0.6

C:\Users\Administrator>

验证

C:\Users\Administrator>python
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD6
4)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from suds.client import Client
>>>
 类似资料: