我以前有Python 2.7版安裝,並正在像這樣的電話:的Python jsonrpclib不工作對Python 3.5.2
api = jsonrpclib.Server('my host')
api.someFunctionCall()
我然後升級到3.5.2的Python,現在當我運行上面的代碼,我收到這樣的信息:
Traceback (most recent call last):
File "C:\login\login.py", line 1, in <module>
import jsonrpclib
File "C:\Python3.5.2\lib\site-packages\jsonrpclib\__init__.py", line 5, in <module>
from jsonrpclib.jsonrpc import Server, MultiCall, Fault
ImportError: No module named 'xmlrpclib'
我檢查了我安裝,我確實也有XMLRPC的lib:
c:\Python3.5.2\Lib\xmlrpc
我在做什麼錯了?
Python 3支持它嗎? –