installing pandas using pip in EPD7.3 without upgrading numpy

252 views
Skip to first unread message

Andreas Hilboll

unread,
Jul 4, 2012, 3:02:53 AM7/4/12
to pystat...@googlegroups.com
According to
http://pandas.pydata.org/pandas-docs/stable/install.html#dependencies,
pandas 0.8 requires numpy >= 1.6.1. When installing pandas via pip on a
system with EPD7.3 installed (which ships numpy 1.6.1), pip downloads
numpy 1.6.2 and installs it as a dependency.

I figure this is because I supplied the ``--upgrade`` flag to pip. This
was necessary because EPD already includes pandas 0.7.3.

Am I missing a point, or is pip just not the way to go in this case?

Cheers,
Andreas.

(pydoas)hilboll@gomzo ~/.virtualenvs/pydoas $ echo $PYTHONPATH
/data/home/hilboll/src:/data/home/hilboll/.virtualenvs/pydoas/lib/python2.7/site-packages:/data/home/hilboll/lib/epd-7.3-1-x86_64/lib/python2.7/site-packages

(pydoas)hilboll@gomzo ~/.virtualenvs/pydoas $ echo $PATH
/data/home/hilboll/.virtualenvs/pydoas/bin:/data/home/hilboll/lib/epd-7.3-1-x86_64/bin:/data/home/hilboll/.virtualenvs/pydoas/bin:/data/home/hilboll/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5:/usr/lib64/subversion/bin:/usr/games/bin

(pydoas)hilboll@gomzo ~ $ pip install --upgrade pandas
Downloading/unpacking pandas from
http://pypi.python.org/packages/source/p/pandas/pandas-0.8.0.zip#md5=d5ef1111cc17547afa877c9318d15ea1
Downloading pandas-0.8.0.zip (1.9Mb): 1.9Mb downloaded
Running setup.py egg_info for package pandas

warning: no files found matching 'setupegg.py'
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
Requirement already up-to-date: python-dateutil<2 in
./lib/epd-7.3-1-x86_64/lib/python2.7/site-packages (from pandas)
Downloading/unpacking pytz from
http://pypi.python.org/packages/source/p/pytz/pytz-2012c.tar.gz#md5=1aa85f072e3d34ae310665967a0ce053
(from pandas)
Downloading pytz-2012c.tar.gz (234Kb): 234Kb downloaded
Running setup.py egg_info for package pytz

warning: no files found matching '*.pot' under directory 'pytz'
warning: no previously-included files found matching 'test_zdump.py'
Downloading/unpacking numpy>=1.6 from
http://pypi.python.org/packages/source/n/numpy/numpy-1.6.2.zip#md5=7e13c931985f90efcfa0408f845d6fee
(from pandas)
Downloading numpy-1.6.2.zip (2.9Mb): 2.9Mb downloaded
Running setup.py egg_info for package numpy
[............]

Robert Kern

unread,
Jul 4, 2012, 6:14:06 AM7/4/12
to pystat...@googlegroups.com
On Wed, Jul 4, 2012 at 8:02 AM, Andreas Hilboll <li...@hilboll.de> wrote:
> According to
> http://pandas.pydata.org/pandas-docs/stable/install.html#dependencies,
> pandas 0.8 requires numpy >= 1.6.1. When installing pandas via pip on a
> system with EPD7.3 installed (which ships numpy 1.6.1), pip downloads
> numpy 1.6.2 and installs it as a dependency.
>
> I figure this is because I supplied the ``--upgrade`` flag to pip. This
> was necessary because EPD already includes pandas 0.7.3.
>
> Am I missing a point, or is pip just not the way to go in this case?

You should probably uninstall the EPD egg of pandas first. Upgrading
it via pip still leaves some metadata that will make enpkg still think
that you have the old pandas installed.

$ egginst --remove pandas

$ pip install pandas

But in general, you should be able to upgrade just the requested
package and not its dependencies like so:

$ pip install --upgrade --no-deps pandas

--
Robert Kern

Andreas Hilboll

unread,
Jul 4, 2012, 6:28:50 AM7/4/12
to pystat...@googlegroups.com
Thanks, Robert!

Reply all
Reply to author
Forward
0 new messages