Python ImportError:没有名为log的模块

Python ImportError:没有名为log的模块,python,Python,日志不是python中的内置包吗 # /usr/bin/python Python 2.7.5 (default, Oct 11 2015, 17:47:16) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import log as logging Traceback (mo

日志不是python中的内置包吗

# /usr/bin/python
Python 2.7.5 (default, Oct 11 2015, 17:47:16) 
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import log as logging
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named log
>>> 
#/usr/bin/python
Python 2.7.5(默认,2015年10月11日,17:47:16)
[GCC 4.8.3 20140911(红帽4.8.3-9)]关于linux2
有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。
>>>将日志作为日志导入
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
ImportError:没有名为log的模块
>>> 
是否需要使用pip安装
log

import logging as log