suds如何在python3.x上的安装

发布时间:2021-10-14 15:03:30 作者:柒染
来源:亿速云 阅读:147

本篇文章为大家展示了suds如何在python3.x上的安装,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

suds下载:
https://fedorahosted.org/releases/s/u/suds/python-suds-0.4.1.tar.gz

安装报错,在网上也没有找到相关的解决办法,试过0.4.0版本还是如此。
bill131:~/python-suds-0.4.1 # python3 setup.py install
Traceback (most recent call last):
  File "setup.py", line 20, in <module>
    import suds
  File "/root/python-suds-0.4.1/suds/__init__.py", line 154, in <module>
    import client
ImportError: No module named client

后来无意中在pypi网站看到suds-jurko,看介绍好像是对原版进行延续改进,下载地址为:
suds-jurko-0.4.1.jurko.4.zip
http://pypi.python.org/packages/source/s/suds-jurko/suds-jurko-0.4.1.jurko.4.zip#md5=769689edca81c34c0421a4145b08c264
再次安装成功(python3.3):
C:\suds-jurko-0.4.1.jurko.3>python setup.py install
running install
D:\Program Files\Python32\lib\site-packages\distribute-0.6.26-py3.2.egg\setuptools\command\einstall.py:290: UserWarning: Unbuilt egg for suds-jurko [unknown version] (c:\suds-jurko-0.4urko.3)
  self.local_index = Environment(self.shadow_path+sys.path)
running bdist_egg
running egg_info
writing suds_jurko.egg-info\PKG-INFO
writing top-level names to suds_jurko.egg-info\top_level.txt
writing dependency_links to suds_jurko.egg-info\dependency_links.txt
reading manifest file 'suds_jurko.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'suds_jurko.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
........................
Installed d:\program files\python32\lib\site-packages\suds_jurko-0.4.1.jurko.3-py3.2.egg
Processing dependencies for suds-jurko==0.4.1.jurko.3
Finished processing dependencies for suds-jurko==0.4.1.jurko.3

后在python3.2.3上安装失败,报错如下:
bill131:~/suds-jurko-0.4.1.jurko.3 # python3  setup.py install
running install
/usr/local/lib/python3.2/site-packages/distribute-0.6.26-py3.2.egg/setuptools/command/easy_install.py:290: UserWarning: Unbuilt egg for suds-jurko [unknown version] (/root/suds-jurko-0.4.1.jurko.3)
  self.local_index = Environment(self.shadow_path+sys.path)
running bdist_egg
running egg_info
writing suds_jurko.egg-info/PKG-INFO
Traceback (most recent call last):
  File "setup.py", line 154, in <module>
    **extra
  File "/usr/local/lib/python3.2/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.2/distutils/dist.py", line 917, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.2/site-packages/distribute-0.6.26-py3.2.egg/setuptools/command/install.py", line 73, in run
    self.do_egg_install()
  File "/usr/local/lib/python3.2/site-packages/distribute-0.6.26-py3.2.egg/setuptools/command/install.py", line 93, in do_egg_install
    self.run_command('bdist_egg')
  File "/usr/local/lib/python3.2/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.2/site-packages/distribute-0.6.26-py3.2.egg/setuptools/command/bdist_egg.py", line 172, in run
    self.run_command("egg_info")
  File "/usr/local/lib/python3.2/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python3.2/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.2/site-packages/distribute-0.6.26-py3.2.egg/setuptools/command/egg_info.py", line 172, in run
    writer(self, ep.name, os.path.join(self.egg_info,ep.name))
  File "/usr/local/lib/python3.2/site-packages/distribute-0.6.26-py3.2.egg/setuptools/command/egg_info.py", line 384, in write_pkg_info
    metadata.write_pkg_info(cmd.egg_info)
  File "/usr/local/lib/python3.2/distutils/dist.py", line 1015, in write_pkg_info
    self.write_pkg_file(pkg_info)
  File "/usr/local/lib/python3.2/distutils/dist.py", line 1031, in write_pkg_file
    file.write('Author: %s\n' % self.get_contact() )
UnicodeEncodeError: 'gbk' codec can't encode character '\u0107' in position 24: illegal multibyte sequence

上述内容就是suds如何在python3.x上的安装,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. 如何在SUSE上安装Sybase
  2. 如何在DNS上安装bind

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

python suds

上一篇:python函数参数的传递有哪些你

下一篇:如何封装ajax

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》