久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <tfoot id='XMQtW'></tfoot>
      <legend id='XMQtW'><style id='XMQtW'><dir id='XMQtW'><q id='XMQtW'></q></dir></style></legend>
      <i id='XMQtW'><tr id='XMQtW'><dt id='XMQtW'><q id='XMQtW'><span id='XMQtW'><b id='XMQtW'><form id='XMQtW'><ins id='XMQtW'></ins><ul id='XMQtW'></ul><sub id='XMQtW'></sub></form><legend id='XMQtW'></legend><bdo id='XMQtW'><pre id='XMQtW'><center id='XMQtW'></center></pre></bdo></b><th id='XMQtW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='XMQtW'><tfoot id='XMQtW'></tfoot><dl id='XMQtW'><fieldset id='XMQtW'></fieldset></dl></div>
    1. <small id='XMQtW'></small><noframes id='XMQtW'>

        <bdo id='XMQtW'></bdo><ul id='XMQtW'></ul>
    2. Python,如何處理“ValueError:不支持的pickle協議:4

      Python, how to handle the quot;ValueError: unsupported pickle protocol: 4quot; error?(Python,如何處理“ValueError:不支持的pickle協議:4;錯誤?)

      <legend id='NSG9E'><style id='NSG9E'><dir id='NSG9E'><q id='NSG9E'></q></dir></style></legend>
          <i id='NSG9E'><tr id='NSG9E'><dt id='NSG9E'><q id='NSG9E'><span id='NSG9E'><b id='NSG9E'><form id='NSG9E'><ins id='NSG9E'></ins><ul id='NSG9E'></ul><sub id='NSG9E'></sub></form><legend id='NSG9E'></legend><bdo id='NSG9E'><pre id='NSG9E'><center id='NSG9E'></center></pre></bdo></b><th id='NSG9E'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='NSG9E'><tfoot id='NSG9E'></tfoot><dl id='NSG9E'><fieldset id='NSG9E'></fieldset></dl></div>
          • <bdo id='NSG9E'></bdo><ul id='NSG9E'></ul>

          • <small id='NSG9E'></small><noframes id='NSG9E'>

            <tfoot id='NSG9E'></tfoot>

                  <tbody id='NSG9E'></tbody>
                本文介紹了Python,如何處理“ValueError:不支持的pickle協議:4";錯誤?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我是 Python 新手.我必須運行這個 TargetFinder 腳本(自定義分析").

                I'm new to Python. I've to run this TargetFinder script ("Custom Analyses").

                我安裝了所有必需的 python 包,并將代碼復制到我命名為 main.py 的腳本中,然后運行它.我收到了這個錯誤:

                I installed all the required python packages, and copied the code into a script I named main.py, and ran it. I got this error:

                [davide@laptop]$ python main.py 
                Traceback (most recent call last):
                  File "main.py", line 8, in <module>
                    training_df = pd.read_hdf('./paper/targetfinder/K562/output-epw/training.h5', 'training').set_index(['enhancer_name', 'promoter_name'])
                  File "/usr/lib64/python2.7/site-packages/pandas/io/pytables.py", line 330, in read_hdf
                    return store.select(key, auto_close=auto_close, **kwargs)
                  File "/usr/lib64/python2.7/site-packages/pandas/io/pytables.py", line 680, in select
                    return it.get_result()
                  File "/usr/lib64/python2.7/site-packages/pandas/io/pytables.py", line 1364, in get_result
                    results = self.func(self.start, self.stop, where)
                  File "/usr/lib64/python2.7/site-packages/pandas/io/pytables.py", line 673, in func
                    columns=columns, **kwargs)
                  File "/usr/lib64/python2.7/site-packages/pandas/io/pytables.py", line 2786, in read
                    values = self.read_array('block%d_values' % i)
                  File "/usr/lib64/python2.7/site-packages/pandas/io/pytables.py", line 2327, in read_array
                    data = node[:]
                  File "/usr/lib64/python2.7/site-packages/tables/vlarray.py", line 677, in __getitem__
                    return self.read(start, stop, step)
                  File "/usr/lib64/python2.7/site-packages/tables/vlarray.py", line 817, in read
                    outlistarr = [atom.fromarray(arr) for arr in listarr]
                  File "/usr/lib64/python2.7/site-packages/tables/atom.py", line 1211, in fromarray
                    return cPickle.loads(array.tostring())
                ValueError: unsupported pickle protocol: 4
                

                我不知道這個 pickle 協議是什么意思,我的同事也對此一無所知.

                I've no idea about what this pickle protocol means, and also my colleagues know nothing about it.

                我該如何解決這個問題?

                我在 CentOS Linux 版本 7.2.1511(核心)操作系統上使用 Python 2.7.5

                I'm using Python 2.7.5 on a CentOS Linux release 7.2.1511 (Core) operating system

                推薦答案

                Pickle 協議基本上就是文件格式.從 文檔,使用的協議越高,讀取生成的 pickle 所需的 Python 版本越新. ... Pickle 協議版本 4 是在 Python 3.4 中添加的,您的 Python 版本(2.7.5) 不支持這個.

                The Pickle protocol is basically the file format. From the documentation, The higher the protocol used, the more recent the version of Python needed to read the pickle produced. ... Pickle protocol version 4 was added in Python 3.4, your python version (2.7.5) does not support this.

                要么升級到 Python 3.4 或更高版本(當前為 3.5),要么在 pickle.dump() 的第三個參數中使用較低的協議 (2) 創建 pickle.

                Either upgrade to Python 3.4 or later (current is 3.5) or create the pickle using a lower protocol (2) in the third parameter to pickle.dump().

                這篇關于Python,如何處理“ValueError:不支持的pickle協議:4";錯誤?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造python包)
                Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                How to refresh sys.path?(如何刷新 sys.path?)
                Distribute a Python package with a compiled dynamic shared library(分發帶有已編譯動態共享庫的 Python 包)
                    • <bdo id='gwjas'></bdo><ul id='gwjas'></ul>
                      <i id='gwjas'><tr id='gwjas'><dt id='gwjas'><q id='gwjas'><span id='gwjas'><b id='gwjas'><form id='gwjas'><ins id='gwjas'></ins><ul id='gwjas'></ul><sub id='gwjas'></sub></form><legend id='gwjas'></legend><bdo id='gwjas'><pre id='gwjas'><center id='gwjas'></center></pre></bdo></b><th id='gwjas'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='gwjas'><tfoot id='gwjas'></tfoot><dl id='gwjas'><fieldset id='gwjas'></fieldset></dl></div>
                    • <tfoot id='gwjas'></tfoot>
                      <legend id='gwjas'><style id='gwjas'><dir id='gwjas'><q id='gwjas'></q></dir></style></legend>

                        <small id='gwjas'></small><noframes id='gwjas'>

                          <tbody id='gwjas'></tbody>

                        • 主站蜘蛛池模板: 免费黄色一级视频 | 国产视频一区二区在线 | 蜜桃成人在线 | 自拍偷在线精品自拍偷无码专区 | 久久久久亚洲 | 中文字幕欧美激情 | 深夜福利视频网站 | 亚洲一区精品视频 | 欧美一级免费 | 一区二区三区四区国产 | 久在线观看 | 欧美一级做性受免费大片免费 | 超碰免费在线 | 亚洲成人一区二区三区 | 亚洲狠狠干 | 国产精品婷婷 | 日韩精品三级 | 欧美成人激情视频 | 国产欧美久久久 | 美女扒开腿让人桶爽原神 | 一区久久| 91精品国产日韩91久久久久久 | 一级性视频 | 97在线超碰 | 日韩精品久久久久久久酒店 | 深夜福利视频在线观看 | 天天操天天干天天 | 91片黄在线观看动漫 | 一级片免费视频 | 男女那个视频 | 国产成人黄色 | 蜜臀久久99精品久久久久久宅男 | 亚洲一区二区在线播放 | 亚洲精品久久 | 日韩在线免费观看视频 | 日本特黄一级片 | 欧美在线视频播放 | 成人午夜网站 | 91欧美激情一区二区三区成人 | 婷婷伊人网| 国产黄色在线 |