2015-06-05 225 views
2

我已經安裝了openpyxl。通過Idle中的例子,我沒有遇到任何問題。Python模塊導入Visual Studio

試圖使用我的VisualStudio python編輯器,模塊導入失敗。

是否需要將openpyxl添加到IronPython才能使用?如果是這樣,怎麼樣?

+0

你有沒有試過這個:http://stackoverflow.com/questions/9980785/how-to-install-openpyxl-within-ironpython – DeJaVo

+0

看看這裏的評論,我現在也許會離開這個:https ://ericgazoni.wordpress.com/2011/10/31/openpyxl-1-6-6/ – MaxRussell

+0

如果可以使用CPython實現,但在VisualStudio中進行編輯,那將是有用的。 – MaxRussell

回答

1

openpyxl不適用於IronPython。但是,這不應該影響與VisualStudio一起使用它。想必您需要爲項目設置路徑。

+0

在Visual Studio中找到了將C Python設置爲默認設置而不是IronPython的選項,現在可以使用openpyxl。 – MaxRussell