作者dreler1 (....)
站內Programming
標題[問題] import pandas to python
時間Sat Jun 20 04:37:37 2015
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://webptt.com/m.aspx?n=bbs/Programming/M.1434746260.A.8B8.html
※ 編輯: dreler1 (107.15.112.169), 06/20/2015 04:40:35
1F:→ n3oanderson: pip install pandas111.243.114.192 06/20 12:51
2F:推 Thisisnotptt: 懶的一個一個裝的話可以裝python xy 210.61.51.226 06/20 14:49
3F:→ Thisisnotptt: (2.7版要移除比較不會干擾), 內建許 210.61.51.226 06/20 14:49
4F:→ Thisisnotptt: 多常用科研數學套件以及spyder IDE 210.61.51.226 06/20 14:49
5F:→ Thisisnotptt: 跟Ipython, numpy scipy 什麼的一 210.61.51.226 06/20 14:49
6F:→ Thisisnotptt: 次搞定 210.61.51.226 06/20 14:49
7F:推 Thisisnotptt: 另外 假如要用"pip"的安裝功能,要 210.61.51.226 06/20 14:51
8F:→ Thisisnotptt: 先安裝pip,不然console一樣會報錯 210.61.51.226 06/20 14:51
9F:→ dreler1: 我移除 python 2.7 電腦就 GG了 剛重灌 107.15.112.169 06/22 04:53
10F:→ dreler1: sudo apt-get remove python 2.7 107.15.112.169 06/22 04:53
11F:→ dreler1: 結果好多東西一起被移除了 只好重灌 107.15.112.169 06/22 04:54
12F:→ dreler1: 晚點 來試試 不移除看會有什麼干擾 107.15.112.169 06/22 04:54
13F:→ dreler1: 謝謝了 107.15.112.169 06/22 04:54
14F:→ dreler1: 照 網頁方法 107.15.112.169 06/22 04:56
15F:→ dreler1: sudo apt-get install python-pip 107.15.112.169 06/22 04:57
16F:→ dreler1: sudo pip install numpy 107.15.112.169 06/22 04:57
17F:→ dreler1: sudo pip install pandas 107.15.112.169 06/22 04:57
18F:→ dreler1: 我import 進去 還是找不到 module 怎麼會 107.15.112.169 06/22 04:57
19F:→ Thisisnotptt: 安裝完要看console的報告,有時候安 1.162.19.229 06/23 08:57
20F:→ Thisisnotptt: 裝失敗他會告訴你原因,我通常都用 1.162.19.229 06/23 08:57
21F:→ Thisisnotptt: sudo apt-get install python-panda 1.162.19.229 06/23 08:58
22F:→ Thisisnotptt: s 1.162.19.229 06/23 08:58
23F:→ Thisisnotptt: 個人覺得windows下pip才比較管用, 1.162.19.229 06/23 08:59
24F:→ Thisisnotptt: 很多時候Linux下我pip install都失 1.162.19.229 06/23 08:59
25F:→ Thisisnotptt: 敗,若一直失敗不妨嘗試直接去抓官 1.162.19.229 06/23 09:00
26F:→ Thisisnotptt: 方網站的安裝包回來解壓縮用 1.162.19.229 06/23 09:01
27F:→ Thisisnotptt: cd .../pkg_path 1.162.19.229 06/23 09:02
28F:→ Thisisnotptt: sudo python setup.py install 1.162.19.229 06/23 09:02
29F:→ Thisisnotptt: 來安裝 1.162.19.229 06/23 09:03
30F:推 Neisseria: 有時候會失敗是編譯 C/C++ 等沒過175.182.163.248 06/23 09:25
31F:→ dreler1: OK 謝謝 107.15.112.169 06/23 21:37
32F:→ dreler1: thanks that works, 107.206.119.90 06/24 12:30
33F:→ dreler1: how can we fix the pip 107.206.119.90 06/24 12:30
34F:→ dreler1: if the problem is related to C compile 107.206.119.90 06/24 12:31
35F:推 Neisseria: 有時候要裝相關函式庫才會編譯成功175.180.193.195 06/24 18:45
36F:→ Neisseria: 所以用 apt-get 裝會比較簡單175.180.193.195 06/24 18:45
37F:推 Thisisnotptt: 通常 pip 報錯通常跟樓上講的一樣 1.169.0.161 06/25 00:26
38F:→ Thisisnotptt: 少某些.h檔,直接google報錯的部份 1.169.0.161 06/25 00:27
39F:→ Thisisnotptt: ,把該裝的裝一裝通常就過了。 1.169.0.161 06/25 00:27
40F:推 alen332l: 有Python版XD 114.25.215.173 07/06 17:21