作者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/cn.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