pandas - Python Data Analysis Library - 安装和版本

pandas - Python Data Analysis Library - 安装和版本

http://pandas.pydata.org/

pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.

pandas is a NumFOCUS sponsored project. This will help ensure the success of development of pandas as a world-class open-source project, and makes it possible to donate to the project.

1. installation
The best way to get pandas is via conda

conda install pandas

Packages are available for all supported python versions on Windows, Linux, and MacOS.
Wheels are also uploaded to PyPI and can be installed with

pip install pandas
yongqiang@strong-sys:~$ sudo pip install pandas
The directory '/home/yongqiang/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/yongqiang/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pandas
  Downloading https://files.pythonhosted.org/packages/b7/e3/f52d484244105fa3d558ce8217a5190cd3d40536076bef66d92d01566325/pandas-0.23.4-cp27-cp27mu-manylinux1_x86_64.whl (8.9MB)
    100% |████████████████████████████████| 8.9MB 1.3MB/s 
Requirement already satisfied: numpy>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from pandas) (1.15.3)
Collecting python-dateutil>=2.5.0 (from pandas)
  Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
    100% |████████████████████████████████| 235kB 4.7MB/s 
Collecting pytz>=2011k (from pandas)
  Downloading https://files.pythonhosted.org/packages/f8/0e/2365ddc010afb3d79147f1dd544e5ee24bf4ece58ab99b16fbb465ce6dc0/pytz-2018.7-py2.py3-none-any.whl (506kB)
    100% |████████████████████████████████| 512kB 3.2MB/s 
Requirement already satisfied: six>=1.5 in /usr/local/lib/python2.7/dist-packages (from python-dateutil>=2.5.0->pandas) (1.11.0)
Installing collected packages: python-dateutil, pytz, pandas
Successfully installed pandas-0.23.4 python-dateutil-2.7.5 pytz-2018.7
yongqiang@strong-sys:~$

2. version (查询版本)

yongqiang@strong-sys:~$ pip list
Package            Version
------------------ -------
adium-theme-ubuntu 0.3.4  
attrs              18.2.0 
enum34             1.1.6  
future             0.17.0 
hypothesis         3.80.0 
numpy              1.15.3 
pandas             0.23.4 
Pillow             5.3.0  
pip                18.1   
protobuf           3.6.1  
pydot              1.2.4  
pyparsing          2.2.2  
python-dateutil    2.7.5  
pytz               2018.7 
PyYAML             3.13   
scikit-learn       0.20.0 
scipy              1.1.0  
setuptools         20.7.0 
six                1.11.0 
torchvision        0.2.1  
typing             3.6.6  
unity-lens-photos  1.0    
yongqiang@strong-sys:~$ 
yongqiang@strong-sys:~$ python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>> pandas.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.13.0-36-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: zh_CN.UTF-8
LOCALE: None.None

pandas: 0.23.4
pytest: None
pip: 18.1
setuptools: 20.7.0
Cython: None
numpy: 1.15.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
>>> 
>>> pandas.__version__
u'0.23.4'
>>> 
>>> exit()
yongqiang@strong-sys:~$

猜你喜欢

转载自blog.csdn.net/chengyq116/article/details/83957454