Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python : install logging module [closed]

Tags:

python

I have python 3.5, tried to install logging package in PyCharm, I got an error:

Error occured when installing package 'logging' Make sure that you use a version of Python supported by this package. Currently you are using Python 3.5.

import logging
logging.warning('Watch out!')
logging.info('I told you so') 

UPDATE:

If it is included why I got this:

Traceback (most recent call last):
  File "C:/Users/alotfi/PycharmProjects/firstProj/logging.py", line 1, in <module>
    import logging
  File "C:\Users\alotfi\PycharmProjects\firstProj\logging.py", line 2, in <module>
    logging.warning('Watch out!')
AttributeError: module 'logging' has no attribute 'warning'

Process finished with exit code 1

Thanks.

like image 247
user1034127 Avatar asked Sep 29 '15 15:09

user1034127


1 Answers

Logging is a standard package for python 3.5 this means that there is no reason to install it.

like image 190
dmr Avatar answered Oct 12 '22 08:10

dmr