Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix Python Numpy/Pandas installation?
    text
    copied!<p>I would like to install Python Pandas library (0.8.1) on Mac OS X 10.6.8. This library needs Numpy>=1.6.</p> <p>I tried this</p> <pre><code>$ sudo easy_install pandas Searching for pandas Reading http://pypi.python.org/simple/pandas/ Reading http://pandas.pydata.org Reading http://pandas.sourceforge.net Best match: pandas 0.8.1 Downloading http://pypi.python.org/packages/source/p/pandas/pandas-0.8.1.zip#md5=d2c5c5bea971cd760b0ae6f6850fcb74 Processing pandas-0.8.1.zip Running pandas-0.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ckAMym/pandas-0.8.1/egg-dist-tmp-0mlL7t error: Setup script exited with pandas requires NumPy &gt;= 1.6 due to datetime64 dependency </code></pre> <p>So I tried to install Numpy</p> <pre><code>$ sudo easy_install numpy Searching for numpy Best match: numpy 1.6.2 Adding numpy 1.6.2 to easy-install.pth file Using /Library/Python/2.6/site-packages Processing dependencies for numpy Finished processing dependencies for numpy </code></pre> <p>So I tried again</p> <pre><code>$ sudo easy_install pandas </code></pre> <p>But the problem is still the same !</p> <pre><code>error: Setup script exited with pandas requires NumPy &gt;= 1.6 due to datetime64 dependency </code></pre> <p>I run Python </p> <pre><code>$ python Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.__version__ '1.2.1' </code></pre> <p>So Numpy 1.6 doesn't seems to be installed correctly !</p> <p>I tried to install Numpy 1.6 with <code>pip</code> (instead of <code>easy_install</code>)...</p> <pre><code>$ sudo pip install numpy Requirement already satisfied (use --upgrade to upgrade): numpy in /Library/Python/2.6/site-packages Cleaning up... </code></pre> <p>I added <code>--upgrade</code> flag</p> <pre><code>$ sudo pip install numpy --upgrade Requirement already up-to-date: numpy in /Library/Python/2.6/site-packages Cleaning up... $ sudo pip install pandas Downloading/unpacking pandas Downloading pandas-0.8.1.zip (1.9MB): 1.9MB downloaded Running setup.py egg_info for package pandas pandas requires NumPy &gt;= 1.6 due to datetime64 dependency Complete output from command python setup.py egg_info: pandas requires NumPy &gt;= 1.6 due to datetime64 dependency ---------------------------------------- Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/pandas Storing complete log in /Users/MyUsername/Library/Logs/pip.log </code></pre> <p>I also tried to install binary version of Numpy <a href="http://sourceforge.net/projects/numpy/files/" rel="noreferrer">http://sourceforge.net/projects/numpy/files/</a> numpy-1.6.2-py2.6-python.org-macosx10.3.dmg but it fails !!! (installer said me that numpy 1.6.2 can't be install on this disk. Numpy requires python.org Python 2.6 to install.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload