我正在運行iPhyton筆記本,並且正在嘗試導入Seaborn軟件包。當我嘗試從終端導入它時,它加載得很好,但是當我通過iPython筆記本導入時,它給我出現以下錯誤。 我甚至試圖在iPython筆記本電腦中使用Conda和Pip來重新安裝Seaborn,但它仍然無法工作。 任何想法爲什麼?Python - 無法導入Seaborn
謝謝。
ImportError Traceback (most recent call last)
<ipython-input-1-417274a1ae6c> in <module>()
1 get_ipython().system(u'conda install seaborn')
2 get_ipython().system(u'pip install seaborn')
----> 3 import seaborn as sb
4
ImportError: No module named seaborn
你安裝了ipytho與conda?您可能必須執行'conda install notebook'來確保ipython可以看到您的庫。 – cel
試過了,它不會工作。還是一樣的錯誤。 – jmich738
然後請添加'which -a pip','which-python'和'which -a ipython'的輸出結果 – cel