Unable to install logging module (Python)

时间:2015-10-16 16:42:04

标签: logging pip python-3.4

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目录中没有安装这样的库。

谢谢!

1 个答案:

答案 0 :(得分:21)

logging是Python标准库的一部分。一旦安装Python就可以使用它。你不需要pip install任何东西......