看板 Programming 關於我們 聯絡資訊
I am a new python user I've installed pandas using the method in following website, http://askubuntu.com/questions/70883/how-do-i-install-python-pandas and tried importing pandas onto my python import pandas frame = pandas.DataFrame() however, an error came out ImportError: No module named pandas I did this under python >>> How can I fix the problem? I am using Ubuntu 15.04 and Python 2.7.9 thank you Best, -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 107.15.112.169 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1434746260.A.8B8.html ※ 編輯: dreler1 (107.15.112.169), 06/20/2015 04:40:35
n3oanderson: pip install pandas111.243.114.192 06/20 12:51
Thisisnotptt: 懶的一個一個裝的話可以裝python xy 210.61.51.226 06/20 14:49
Thisisnotptt: (2.7版要移除比較不會干擾), 內建許 210.61.51.226 06/20 14:49
Thisisnotptt: 多常用科研數學套件以及spyder IDE 210.61.51.226 06/20 14:49
Thisisnotptt: 跟Ipython, numpy scipy 什麼的一 210.61.51.226 06/20 14:49
Thisisnotptt: 次搞定 210.61.51.226 06/20 14:49
Thisisnotptt: 另外 假如要用"pip"的安裝功能,要 210.61.51.226 06/20 14:51
Thisisnotptt: 先安裝pip,不然console一樣會報錯 210.61.51.226 06/20 14:51
dreler1: 我移除 python 2.7 電腦就 GG了 剛重灌 107.15.112.169 06/22 04:53
dreler1: sudo apt-get remove python 2.7 107.15.112.169 06/22 04:53
dreler1: 結果好多東西一起被移除了 只好重灌 107.15.112.169 06/22 04:54
dreler1: 晚點 來試試 不移除看會有什麼干擾 107.15.112.169 06/22 04:54
dreler1: 謝謝了 107.15.112.169 06/22 04:54
dreler1: 照 網頁方法 107.15.112.169 06/22 04:56
dreler1: sudo apt-get install python-pip 107.15.112.169 06/22 04:57
dreler1: sudo pip install numpy 107.15.112.169 06/22 04:57
dreler1: sudo pip install pandas 107.15.112.169 06/22 04:57
dreler1: 我import 進去 還是找不到 module 怎麼會 107.15.112.169 06/22 04:57
Thisisnotptt: 安裝完要看console的報告,有時候安 1.162.19.229 06/23 08:57
Thisisnotptt: 裝失敗他會告訴你原因,我通常都用 1.162.19.229 06/23 08:57
Thisisnotptt: sudo apt-get install python-panda 1.162.19.229 06/23 08:58
Thisisnotptt: s 1.162.19.229 06/23 08:58
Thisisnotptt: 個人覺得windows下pip才比較管用, 1.162.19.229 06/23 08:59
Thisisnotptt: 很多時候Linux下我pip install都失 1.162.19.229 06/23 08:59
Thisisnotptt: 敗,若一直失敗不妨嘗試直接去抓官 1.162.19.229 06/23 09:00
Thisisnotptt: 方網站的安裝包回來解壓縮用 1.162.19.229 06/23 09:01
Thisisnotptt: cd .../pkg_path 1.162.19.229 06/23 09:02
Thisisnotptt: sudo python setup.py install 1.162.19.229 06/23 09:02
Thisisnotptt: 來安裝 1.162.19.229 06/23 09:03
Neisseria: 有時候會失敗是編譯 C/C++ 等沒過175.182.163.248 06/23 09:25
dreler1: OK 謝謝 107.15.112.169 06/23 21:37
dreler1: thanks that works, 107.206.119.90 06/24 12:30
dreler1: how can we fix the pip 107.206.119.90 06/24 12:30
dreler1: if the problem is related to C compile 107.206.119.90 06/24 12:31
Neisseria: 有時候要裝相關函式庫才會編譯成功175.180.193.195 06/24 18:45
Neisseria: 所以用 apt-get 裝會比較簡單175.180.193.195 06/24 18:45
Thisisnotptt: 通常 pip 報錯通常跟樓上講的一樣 1.169.0.161 06/25 00:26
Thisisnotptt: 少某些.h檔,直接google報錯的部份 1.169.0.161 06/25 00:27
Thisisnotptt: ,把該裝的裝一裝通常就過了。 1.169.0.161 06/25 00:27
alen332l: 有Python版XD 114.25.215.173 07/06 17:21