Python pandas stuck at version 0.7.0

后端 未结 3 1125
醉酒成梦
醉酒成梦 2020-12-31 05:56

First off, I\'m a novice... I\'m a newbie to Python, pandas, and Linux.

I\'m getting some errors when trying to populate a DataFrame (sql.read_frame() gives an exc

相关标签:
3条回答
  • 2020-12-31 06:06

    "pip install --upgrade pandas" did not work for me on a fresh Ubuntu: 12.04.2 LTS Desktop instance. Within Python, pandas was still showing version 0.7.0.

    Instead, I was able to get the update through by using easy install:

    sudo easy_install -U pandas
    
    0 讨论(0)
  • 2020-12-31 06:22

    Try upgrading with pip, like so

    pip install --upgrade pandas
    
    0 讨论(0)
  • 2020-12-31 06:24

    As nitin points out, you can simply upgrade pandas using pip:

    pip install --upgrade pandas
    

    Since this version of pandas will be installed in site-packages you will, in fact, be at the mercy of any automatic updates to packages within that directory. It's wise to install the versions of packages you want into a virtual environment so you have a consistent working environment with the bonus of reproducibility.

    To answer your last question, the reason Pandas won't "upgrade" to 0.11.0 using apt-get update is that packages (of Pandas) from your distribution lag behind or haven't been created yet.

    0 讨论(0)
提交回复
热议问题