Unable to install logging module (Python)

2020-04-02 18:20发布

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.

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

Thanks!

1条回答
SAY GOODBYE
2楼-- · 2020-04-02 18:48

logging is part of the Python standard library. It's available as soon as you install Python. You don't need to pip install anything...

查看更多
登录 后发表回答