熊猫0.18语法无效

时间:2016-04-15 04:29:58

标签: python pandas

Python 3.2安装在Linux Debian 7下的虚拟环境(名为test3)中,pandas 0.18在此环境中安装了pip。测试程序:

import pandas as pd
print('Pandas version ' + pd.__version__)

导致以下错误:

Traceback (most recent call last):
File "pandatest.py", line 1, in <module>
import pandas as pd
File "/home/tad/Programming/testpanda/test3/lib/python3.2/site-packages/pandas/__init__.py", line 43, in <module>
from pandas.io.api import *
File "/home/tad/Programming/testpanda/test3/lib/python3.2/site-packages/pandas/io/api.py", line 17, in <module>
from pandas.io.packers import read_msgpack, to_msgpack
File "/home/tad/Programming/testpanda/test3/lib/python3.2/site-packages/pandas/io/packers.py", line 258
if compress == u'zlib':
                     ^
SyntaxError: invalid syntax

可能是什么原因?似乎以前没有人报告过,在网上找不到任何东西。

0 个答案:

没有答案