如何在python 3.4中安装xmlrpclib? [英] How to install xmlrpclib in python 3.4?

查看:492
本文介绍了如何在python 3.4中安装xmlrpclib?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装xmlrpclib时,在python 3.4版中出现以下错误

When I am trying to install xmlrpclib, I am getting following error in python version 3.4

下载/解压缩xmlrpclib 找不到任何符合xmlrpclib要求的下载 一些外部托管的文件被忽略(使用--allow-external xmlrpclib允许). 打扫干净... 找不到xmlrpclib的发行版 将失败的调试日志存储在/home/shiva/.pip/pip.log

Downloading/unpacking xmlrpclib Could not find any downloads that satisfy the requirement xmlrpclib Some externally hosted files were ignored (use --allow-external xmlrpclib to allow). Cleaning up... No distributions at all found for xmlrpclib Storing debug log for failure in /home/shiva/.pip/pip.log

如何在python 3.4中安装xmlrpclib?

How to install xmlrpclib in python 3.4 ?

推荐答案

xmlrpclib是Python 2.x中标准库的一部分.这不是您需要安装的软件包.

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

在Python 3.x中,您可以从xmlrpc导入它: https://docs.python. org/3/library/xmlrpc.html .您可以从xmlrpc.client导入客户端: https://docs.python. org/3/library/xmlrpc.client.html#module-xmlrpc.client .

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.

这篇关于如何在python 3.4中安装xmlrpclib?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆