2016-08-02 41 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嗎?

回答

相關問題