How to fix Python Numpy/Pandas installation?

前端 未结 9 595
说谎
说谎 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:42

    This worked for me under 10.7.5 with EPD_free-7.3-2 from Enthought:

    Install EPD free, then follow the step in the following link to create .bash_profile file.

    http://redfinsolutions.com/blog/creating-bashprofile-your-mac

    And add the following to the file.

    PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$(PATH)}"
    export PATH
    

    Execute the following command in Terminal

    $ sudo easy_install pandas
    

    When finished, launch PyLab and type:

    In [1]: import pandas
    
    In [2]: plot(arange(10))
    

    This should open a plot with a diagonal straight line.

提交回复
热议问题