在Python中使用Cython.Build时出错

时间:2017-01-08 18:10:54

标签: python gzip cython

当我导入Cython.Build时,它会给我这样的错误

  >>> from Cython.Build import cythonize 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/Cython/Build/__init__.py", line 1, in <module>
    from .Dependencies import cythonize
  File "/usr/lib/python2.7/dist-packages/Cython/Build/Dependencies.py", line 10, in <module>
    import gzip
  File "/usr/lib/python2.7/gzip.py", line 36, in <module>
    class GzipFile(io.BufferedIOBase):
AttributeError: 'module' object has no attribute 'BufferedIOBase'

我尝试重新安装Cython但似乎没用。我怎么解决呢?谢谢!

0 个答案:

没有答案