Python3 and pandas

前端 未结 6 1564
無奈伤痛
無奈伤痛 2020-12-31 13:31

I have checked some other SO answers and googled somewhat extensively and cannot seem to find someone who has asked/answered this:

I am running Ubuntu 12.04. I have

相关标签:
6条回答
  • 2020-12-31 14:03

    Update

    As mentioned below, pandas is now available for python 3.3, 3.4 and 3.5 source

    For system wide install use:

    sudo apt-get install python3-pandas
    

    Original:

    If this information http://packages.ubuntu.com/precise/python/ is correct there is no pandas package for Python 3. You can install current pandas using virtualenv:

    apt-get install python-virtualenv virtualenvwrapper
    
    mkvirtualenv -p python3 pandas_env
    pip install pandas
    

    Generally it is a good idea to create separate virtual environments when working with Python and to avoid manual messing with system wide packages.

    0 讨论(0)
  • 2020-12-31 14:05

    You may just install it by sudo apt-get install python3-pandas if you'd prefer a system-wide installation

    0 讨论(0)
  • 2020-12-31 14:07

    there is a python3-pip which will install pip-3.3 instead of pip. the pip-3.3 will install the pandas package into python3.3

    0 讨论(0)
  • 2020-12-31 14:08
    sudo apt update
    sudo apt install python3-pip
    sudo pip3 install pandas
    
    0 讨论(0)
  • 2020-12-31 14:08

    I would highly recommend that you install, and learn how to use, Anaconda to manage your python environments.It is superior to using pip, or virtualenv, pyenv or any of the wrappers for that stuff. Check it out:

    https://store.continuum.io/cshop/anaconda/

    0 讨论(0)
  • 2020-12-31 14:26

    I use MacOSx and I manage to install it using:

    brew install python3
    sudo pip3 install --upgrade pip
    pip3 install pandas
    

    Check the installation using:

    $python3
    >>>import pandas as pd
    >>>exit()
    
    0 讨论(0)
提交回复
热议问题