How to fix Python Numpy/Pandas installation?

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

    You probably have another Numpy version installed on your system, try to query your numpy version and retrieve it if your distribution does not support it.
    aka debian/unbuntu/Mint version can query mostly from dpkg package manger : dpkg --get-selections | egrep -i "numpy", you can see actual Numpy version.

    • Some having apt can either asking to removing it by doing this: apt-get remove numpy.

    • Some having distribution like Fedora, RedHat and any compatible release under RedHat model can use rpm as well to query the installation.

    • This is happening by telling to Numpy installer to install itself in current /usr/local/lib/python[VERSION]/dist-packages over Linux env and c:[...]\python[VERSION]\site-packages for windows. Having probably One version of Numpy installed in /usr/local/python[VERSION]/dist-packages, this one will be instantiated first.

    • .pth file hold information about path location of specific python module, but erasing a component from packages may corrupt it...

    Be careful, and you will have to remove the package and all it's dependency... really painful in some case.

    Visiting lunchad.net may save you time sometimes they had new versions from some packages.

提交回复
热议问题