2016-12-16 39 views
1

我已經導入pyexcel作爲pe,並試圖在xls文件上運行get_array和iget_records,並且出現一個奇怪的錯誤,其中包括我沒有找到多少文檔。錯誤:「OSError:找不到適合xls的庫。」OSError:沒有找到合適的xls文件庫

當我在Test.csv上運行這些命令時,我沒有問題。但我需要它爲xls文件工作,因爲我正在處理非英文字符,我知道它不會出現在csv文件中。

my_array = pe.get_array(file_name="Test.xls") 
print(my_array) 

分開,

records = pe.iget_records(file_name="/Tests/Test.xls") 
for record in records: 
    print(record['alpha'], record['beta'], record['charlie']) 

想法,任何人嗎?

python 3.5.2; windows 7 64位

回答

1

要擺脫此錯誤,您需要安裝pyexcel-xls。用點子:

pip install pyexcel-xls 
相關問題