简体   繁体   English

无法安装日志记录模块 (Python)

[英]Unable to install logging module (Python)

I'm trying to install the logging module for Python 3.4.我正在尝试为 Python 3.4 安装日志记录模块。 I'm using pip3 install logging.我正在使用 pip3 安装日志记录。 Both times I run into a SyntaxError at line 618 of the init method: "raise NotImplementedError, 'emit must be implemented '\\".两次我都在init方法的第 618 行遇到 SyntaxError:“raise NotImplementedError,'emit must beimplemented '\\”。

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 .有人发布了与我相同的问题,并通过删除名为 logging: Logging module not working with Python3的干扰第三方库解决了他们的问题。

But I have no such library already installed in my site-packages directory.但是我的站点包目录中还没有安装这样的库。

Thanks!谢谢!

logging is part of the Python standard library, and has been since version 2.3. logging是 Python 标准库的一部分,从 2.3 版开始。 It's available as soon as you install Python.安装 Python 后即可使用。 You don't need to pip install anything...你不需要pip install任何东西......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM