看板 Python 關於我們 聯絡資訊
小弟是剛開始學習python的新手 在安裝pandas上遇到了問題,試了下面兩種方法 1. 使用PyPI的easy_install.exe 用此方法在命令提示字元中顯示安裝成功,在cmd下執行python也可以順利import pandas 但在idle中卻無法import pandas,顯示No module named 'pandas' 2. 安裝anaconda,安裝完後也可以在jupyter notebook使用pandas 但在idle中import pandas依舊遇到同樣的問題 由於還是習慣使用idle,想請教能在idle中使用pandas的方法 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.223.103.15 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1479853883.A.D26.html
Zan666: 自問自答,在IDLE裡面把anaconda的lib路徑加進去就可以了 11/23 10:26
Zan666: 希望能幫到有同樣問題的新手 11/23 10:26
oliversu1211: 希望能幫到有同樣問題的新手 請問要怎麼加路徑 11/25 21:45
oliversu1211: Zan666 請問要怎麼加路徑 11/25 21:46
s860134: google "Python中pth文件的使用" 11/26 17:10
Zan666: sys.path.append('路徑') 11/28 06:05
Zan666: 不過使用這個方法每次開IDLE都要加一次 11/28 06:06