Python3.4: Upgrade pandas does not work

后端 未结 1 1880
北恋
北恋 2021-01-27 15:11

I use the pre-installed python3.4 on Ubuntu 14 and want to upgrade pandas to version 0.18.0:

import pandas 
pandas.__version__
>>>>\'0.13.1\'


        
相关标签:
1条回答
  • 2021-01-27 15:42

    I had this same issue (not being able to update pandas via pip3). The problem is installing pandas from two sources (pip3 and apt-get). Try this (it's what I did on ubuntu 16.04):

    1. Remove existing pandas:
      • sudo apt-get remove python3-pandas
    2. Install via pip3:
      • sudo pip3 install pandas # it installed pandas 0.18
    3. Check the correct version a terminal (ctr+alt+t) type:

      • pip3 list # prints out a list of installed python3 modules

      OR / AND

      • python3
      • import pandas
      • pandas.__version__
    0 讨论(0)
提交回复
热议问题