How to install xmlrpclib in python 3.4?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 23:18:22

xmlrpclib is part of the standard library in Python 2.x. It's not a package that you need to install.

In Python 3.x you can import it from xmlrpc instead: https://docs.python.org/3/library/xmlrpc.html. You can import the client from xmlrpc.client: https://docs.python.org/3/library/xmlrpc.client.html#module-xmlrpc.client.

import xmlrpc.client as xc

enter code hereenter code here
client = xc.Server('http://' + host + ':' + port + '/RPC2')
client.supervisor.getState()
client.supervisor.getProcessInfo('process name')
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!