How to fix Python Numpy/Pandas installation?

前端 未结 9 625
说谎
说谎 2020-12-24 06:13

I would like to install Python Pandas library (0.8.1) on Mac OS X 10.6.8. This library needs Numpy>=1.6.

I tried this

$ sudo easy_install pandas
Sear         


        
9条回答
  •  悲哀的现实
    2020-12-24 06:34

    I work with the guys that created Anaconda Python. You can install multiple versions of python and numpy without corrupting your system python. It's free and open source (OSX, linux, Windows). The paid packages are enhancements on top of the free version. Pandas is included.

    conda create --name np17py27 anaconda=1.4 numpy=1.7 python=2.7
    export PATH=~/anaconda/envs/np17py27/bin:$PATH
    

    If you want numpy 1.6:

    conda create --name np16py27 anaconda=1.4 numpy=1.6 python=2.7
    

    Setting your PATH sets up where to find python and ipython. The environments (np17py27) can be named whatever you would like.

提交回复
热议问题