2017-04-21 109 views
0

我試着用蟒蛇和Python都使用3.6版本和多種方法,當我輸入熊貓,我發現了以下錯誤在我的Windows機器在Windows中導入熊貓

import pandas 
    File "D:\python3\lib\site-packages\pandas\__init__.py", line 22, in <module> 
    from pandas.compat.numpy import * 
    File "D:\python3\lib\site-packages\pandas\compat\__init__.py", line 59, in <module> 
    import http.client as httplib 
    File "D:\python3\lib\http\client.py", line 71, in <module> 
    import email.parser 
    File "D:\email.py", line 5, in <module> 
    import pandas.io.sql as psql 
    File "D:\python3\lib\site-packages\pandas\io\sql.py", line 14, in <module> 
    import pandas.lib as lib 
    File "pandas\lib.pyx", line 1, in init pandas.lib (pandas\lib.c:90879) 
    File "pandas\tslib.pyx", line 59, in init pandas.tslib (pandas\tslib.c:115313) 
ImportError: cannot import name is_platform_windows 

這似乎是與環境相關的,但我當我谷歌這一點時,找不到與此問題有關的任何事情。

回答

0

看起來像是在我的文件夾中選取任何python腳本,名爲email.py,這就是問題所在。