2016-08-02 70 views
-2

是不是在Python中记录一个内置包?ImportError:没有名为log的模块

# /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 
>>> 

我需要用pip安装log吗?

回答

相关问题