Unable to install logging module (Python)

44,365

logging is part of the Python standard library, and has been since version 2.3. It's available as soon as you install Python. You don't need to pip install anything...

Share:
44,365

Related videos on Youtube

sjplural
Author by

sjplural

Updated on May 19, 2021

Comments

  • sjplural
    sjplural about 3 years

    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!

  • wesm
    wesm about 8 years
    none of the standard libraries get installed when using virtualenv for python3. So how would one install logging into a virtualenv?
  • MattDMo
    MattDMo about 8 years
    @wesm of course they do. Python wouldn't function without the stdlib. The files may not be copied into your virtualenv from the system location, but they're still available for use.

Related