无法安装日志记录模块(Python) [英] Unable to install logging module (Python)

查看:589
本文介绍了无法安装日志记录模块(Python)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Python 3.4安装日志记录模块.我正在使用pip3安装日志记录.两次我都在 init 方法的第618行遇到SyntaxError:"raise NotImplementedError,'emit必须实现为'\".

I'm trying to install the logging module for Python 3.4. I'm using pip3 install logging. Both times I run into a SyntaxError at line 618 of the init method: "raise NotImplementedError, 'emit must be implemented '\".

有人发布了与我相同的问题,并通过删除一个称为日志记录的干扰第三方库来解决了他们的问题:

Someone posted the same question as me, and solved their problem by deleting an interfering third party library called logging: Logging module not working with Python3.

但是我的site-packages目录中尚未安装这样的库.

But I have no such library already installed in my site-packages directory.

谢谢!

推荐答案

logging 是Python标准库的一部分.安装Python后即可使用.您不需要pip install任何东西...

这篇关于无法安装日志记录模块(Python)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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