错误在pip中安装pandas

时间:2014-06-06 09:31:54

标签: python pandas pip

我正在运行Kali linux,每当我运行sudo pip install pandas时,我都会收到这些导入错误:

nickshoe@kali:~$ sudo pip install pandas
Downloading/unpacking pandas
  Downloading pandas-0.14.0.tar.gz (6.5MB): 6.5MB downloaded
  Running setup.py (path:/tmp/pip_build_root/pandas/setup.py) egg_info for package pandas

    warning: no files found matching 'README.rst'
    no previously-included directories found matching 'doc/build'
    warning: no previously-included files matching '*.so' found anywhere in distribution
    warning: no previously-included files matching '*.pyd' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching '*.png' found anywhere in distribution
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /usr/lib/pymodules/python2.7 (from pandas)
Installing collected packages: pandas
  Running setup.py install for pandas
    building 'pandas.index' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ipandas/src/klib -Ipandas/src -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c pandas/index.c -o build/temp.linux-x86_64-2.7/pandas/index.o
    In file included from pandas/src/klib/khash_python.h:3:0,
                     from pandas/index.c:260:
    pandas/src/klib/khash.h: In function ‘kh_del_str’:
    pandas/src/klib/khash.h:155:38: warning: statement with no effect [-Wunused-value]
     #define __ac_set_isdel_true(flag, i) (0)
                                          ^
    pandas/src/klib/khash.h:321:4: note: in expansion of macro ‘__ac_set_isdel_true’
        __ac_set_isdel_true(h->flags, x);       \
        ^
    pandas/src/klib/khash.h:327:2: note: in expansion of macro ‘KHASH_INIT2’
      KHASH_INIT2(name, static PANDAS_INLINE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
      ^
    pandas/src/klib/khash.h:565:2: note: in expansion of macro ‘KHASH_INIT’
      KHASH_INIT(name, kh_cstr_t, khval_t, 1, kh_str_hash_func, kh_str_hash_equal)
      ^
    pandas/src/klib/khash.h:573:1: note: in expansion of macro ‘KHASH_MAP_INIT_STR’
     KHASH_MAP_INIT_STR(str, size_t)
     ^
    pandas/src/klib/khash.h: In function ‘kh_del_int32’:
    pandas/src/klib/khash.h:155:38: warning: statement with no effect [-Wunused-value]
     #define __ac_set_isdel_true(flag, i) (0)
                                          ^
    pandas/src/klib/khash.h:321:4: note: in expansion of macro ‘__ac_set_isdel_true’
        __ac_set_isdel_true(h->flags, x);       \
        ^
    pandas/src/klib/khash.h:327:2: note: in expansion of macro ‘KHASH_INIT2’
      KHASH_INIT2(name, static PANDAS_INLINE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal)
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pandas/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-z0A772-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pandas
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 41: ordinal not in range(128)

顺便说一下,我试过了sudo pip install -U distribute,但根本没用。

你们认为这个问题是什么?

0 个答案:

没有答案