Mac OS X 10.6.8にPython Pandasライブラリ(0.8.1)をインストールしたいと思います。このライブラリには、Numpy> = 1.6が必要です。Python Numpy/Pandasのインストールを修正するには?
私は、だから私はnumpyの
$ 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
をインストールしようとしたので、私は再び
$ sudo easy_install pandas
を試みたが、問題はまだ同じである!この
$ 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 >= 1.6 due to datetime64 dependency
を試してみました
error: Setup script exited with pandas requires NumPy >= 1.6 due to datetime64 dependency
私はnumpyの1.6が正しくインストールされているようだしないのPython
$ 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.
>>> import numpy as np
>>> np.__version__
'1.2.1'
を実行します!
は、私はまた、numpyのhttp://sourceforge.net/projects/numpy/files/ numpyのバイナリバージョンをインストールしようとした
$ 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 >= 1.6 due to datetime64 dependency
Complete output from command python setup.py egg_info:
pandas requires NumPy >= 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
--upgrade
フラグを追加
$ sudo pip install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /Library/Python/2.6/site-packages
Cleaning up...
...(代わりeasy_install
の)pip
でnumpyの1.6をインストールしようとしました-1.6.2-py2.6-python.org-macosx10.3.dmgしかし、それは失敗します! (インストーラは、私はそれnumpyの1.6.2は、このディスクにインストールすることができないと述べた。numpyのをインストールするには、python.orgのPython 2.6が必要です。
以前のnumpyのインストールはありましたか?多分それは物事を混乱させました。 numpyをアンインストールして、最新バージョンを再インストールしてください。 – Bakuriu
私はNumpyバージョン1.2.1を以前持っていましたが、このバージョンがどのようにインストールされたのか覚えていません(source、easy_install、pip、binary ...から)。非常に奇妙なのは、私がバイナリをインストールできないことです。(私が編集した私の記事の最後の部分を参照してください) – scls
NumPy 1.2.1はどこにインストールされていますか?( 'numpyをnp; print np')私はAppleのシステムのPythonをEPDFreeやアナコンダCEなどのパッケージ配布を使用することをお勧めして避けるだろう '1.2.1' >>>印刷(NP)version__ NP >>> NP .__できるだけ –