18

I'm trying to install Python Pandas on my Raspi and I'm finding strange errors.

~ $ pip install pandas
Downloading/unpacking pandas
Downloading pandas-0.13.1.tar.gz (6.1Mb): 6.1Mb downloaded
Running setup.py egg_info for package pandas

warning: no files found matching 'README.rst'
no previously-included directories found matching 'doc/build'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.png' found anywhere in distribution
....
pandas/src/klib/khash_python.h:13:1: warning: statement with no effect [-Wunused-value]
pandas/src/klib/khash_python.h: In function âkh_del_pymapâ:
pandas/src/klib/khash_python.h:38:1: warning: statement with no effect [-Wunused-value]
pandas/src/klib/khash_python.h: In function âkh_del_pysetâ:
pandas/src/klib/khash_python.h:44:1: warning: statement with no effect [-Wunused-value]
pandas/src/klib/khash_python.h: In function âkh_del_strboxâ:
pandas/src/klib/khash_python.h:49:1: warning: statement with no effect [-Wunused-value]

and then more errors warnings for a long time. It never actually fails, but doesn't complete either in over half an hour. What is going on here and how do I fix it?

Edited to add

I have tried the alternative route of sudo apt-get install python-pandas which does install pandas but it's only version 0.8 rather than 0.13. Trying to follow up with sudo pip install pandas --upgrade gives the same results as above.

Jamie Bull
  • 1,137
  • 3
  • 9
  • 22

5 Answers5

22

Going back to basics, I looked at the installation page for pandas and found that pip install pandas isn't the recommended route on linux systems.

sudo apt-get install python-pandas did the trick.

Jamie Bull
  • 1,137
  • 3
  • 9
  • 22
10

sudo apt-get install python3-pandas works on the Raspberry Pi4 and the pandas version is 0.23.3.

Jacob Pew
  • 3
  • 3
leocheng
  • 101
  • 1
  • 2
1

The above answer works but I then faced issues getting pandas into the virtualenv that I had created. Copying this answer

https://stackoverflow.com/questions/29466663/memory-error-while-using-pip-install-matplotlib

from a related matplotlib issue fixed my situation on the latest raspbian install.

Solution: pip --no-cache-dir install pandas

SchC
  • 11
  • 2
0

sudo pip3 install pandas worked for mine

goldilocks
  • 60,325
  • 17
  • 117
  • 234
0

Personally I create a virtual environment and install pandas through pip (the relevant dependencies such as numpy will be installed along the way)