2014-07-11 50 views
0

在python 3.4.1中導入pytables(3.1.1)失敗,抱怨cPickle導入失敗 我嘗試在python(3.4.1)中使用potables(3.1.1)在python3下使用pytables失敗

In [1]: import tables 
--------------------------------------------------------------------------- 
ImportError        Traceback (most recent call last) 
<ipython-input-1-389ecae14f10> in <module>() 
----> 1 import tables 

/work/projects/vEnv/lib/python3.4/site-packages/tables/__init__.py in <module>() 
    80 
    81 # Necessary imports to get versions stored on the cython extension 
---> 82 from tables.utilsextension import (
    83  get_pytables_version, get_hdf5_version, blosc_compressor_list, 
    84  blosc_compcode_to_compname_ as blosc_compcode_to_compname, 

/work/projects/vEnv/lib/python3.4/site-packages/tables/utilsextension.pyx in init tables.utilsextension (tables/utilsextension.c:15600)() 

/work/projects/vEnv/lib/python3.4/site-packages/tables/description.py in <module>() 
    22 import numpy 
    23 
---> 24 from tables import atom 
    25 from tables.path import check_name_validity 
    26 

/work/projects/vEnv/lib/python3.4/site-packages/tables/atom.py in <module>() 
    18 import sys 
    19 import inspect 
---> 20 import cPickle 
    21 
    22 import numpy 

據我所知,cPickle只是用來代替python2中的pickle。從PyTable 3.x開始,它應該可以和python3.x一起使用。如何能有一個cPickle導入?

python3 pytables使用pytables我該怎麼做?

回答

0

該錯誤最有可能是由於我的vEnv問題導致的。卸載軟件包並重新安裝它可以解決問題。

請參閱github issue