checking suds version in python

你离开我真会死。 提交于 2019-12-25 01:24:21

问题


how to check the version of suds installed in python, i look over in the net but i cannot find one.

i try this one. in running python manage.py shell

>>> import suds
>>> suds

but i got the python version on running it.

<module 'suds' from '/usr/local/lib/python2.7/dist-packages/suds/__init__.pyc'>

how can I check the suds version?

i try also suds version but i got this error

>>> import suds
>>> suds version
  File "<console>", line 1
    suds version
               ^
SyntaxError: invalid syntax

回答1:


>>>> import suds
>>>> print suds.__version__
0.4.1

Tada.

Edit: A more generic question was asked about this, and here's a kind-of-hacky script that checks for common names for the version constant.



来源:https://stackoverflow.com/questions/10070093/checking-suds-version-in-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!