网站建设资讯

NEWS

网站建设资讯

suds如何在python3.x上的安装

本篇文章为大家展示了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
    import suds
  File "/root/python-suds-0.4.1/suds/__init__.py", line 154, in
    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
    **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上的安装,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注创新互联行业资讯频道。


网站标题:suds如何在python3.x上的安装
文章起源:http://njwzjz.com/article/ggiish.html