pandas install problem

1,173 views
Skip to first unread message

JDennison

unread,
Oct 19, 2011, 3:01:12 PM10/19/11
to pystatsmodels
This may not be a pandas specific issue but its the last thing i can;t
get installed. I have ipython, numpy and dateutil up and running. Im
using python 2.6.5 on an 64-bit unbuntu 10.04.1 machine. Here are my
log files. Any help would be life saver.

$ sudo pip install pandas
Downloading/unpacking pandas
Running setup.py egg_info for package pandas
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
Installing collected packages: pandas
Running setup.py install for pandas
building 'pandas._tseries' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -I/usr/lib/python2.6/dist-packages/numpy/core/
include -I/usr/include/python2.6 -c pandas/src/tseries.c -o build/
temp.linux-x86_64-2.6/pandas/src/tseries.o
pandas/src/tseries.c:4:20: error: Python.h: No such file or
directory
pandas/src/tseries.c:6:6: error: #error Python headers needed to
compile C extensions, please install development version of Python.
error: command 'gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import
setuptools;__file__='/home/jdennison/build/pandas/
setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --single-version-externally-managed --
record /tmp/pip-g5_JzV-record/install-record.txt:
running install

running build

running build_py

copying pandas/version.py -> build/lib.linux-x86_64-2.6/pandas

running build_ext

building 'pandas._tseries' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -I/usr/lib/python2.6/dist-packages/numpy/core/
include -I/usr/include/python2.6 -c pandas/src/tseries.c -o build/
temp.linux-x86_64-2.6/pandas/src/tseries.o

pandas/src/tseries.c:4:20: error: Python.h: No such file or directory

pandas/src/tseries.c:6:6: error: #error Python headers needed to
compile C extensions, please install development version of Python.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/
jdennison/build/pandas/
setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --single-version-externally-managed --
record /tmp/pip-g5_JzV-record/install-record.txt failed with error
code 1
Storing complete log in /home/jdennison/.pip/pip.log

Skipper Seabold

unread,
Oct 19, 2011, 3:04:58 PM10/19/11
to pystat...@googlegroups.com

This bit indicates that you need the python headers.

sudo apt-get install python-dev

hth,

Skipper

Yaroslav Halchenko

unread,
Oct 19, 2011, 3:35:34 PM10/19/11
to pystat...@googlegroups.com
alternatively if you were running ubuntu >= 11.04 you could use
python-pandas package available from neuro.debian.net repository.

otherwise here is an additional list of (optional or not so) dependencies
you might like to have

python-setuptools, cython (>= 0.12~),
python-numpy, python-dateutil,
python-scipy,
python-scikits.statsmodels,
python-tz,
python-tables, python-xlrd,
python-matplotlib,
Cheers,

On Wed, 19 Oct 2011, Skipper Seabold wrote:
> > pandas/src/tseries.c:6:6: error: #error Python headers needed to
> > compile C extensions, please install development version of Python.


> This bit indicates that you need the python headers.

> sudo apt-get install python-dev

> hth,

> Skipper

> > error: command 'gcc' failed with exit status 1

> > ----------------------------------------
> > Command /usr/bin/python -c "import setuptools;__file__='/home/
> > jdennison/build/pandas/
> > setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'),
> > __file__, 'exec'))" install --single-version-externally-managed --
> > record /tmp/pip-g5_JzV-record/install-record.txt failed with error
> > code 1
> > Storing complete log in /home/jdennison/.pip/pip.log

--
=------------------------------------------------------------------=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic

Reply all
Reply to author
Forward
0 new messages