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

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

      <tfoot id='DVYMj'></tfoot>
      1. Pytest 版本冲突错误

        Pytest Version Conflict Error(Pytest 版本冲突错误)
            • <tfoot id='5Xher'></tfoot>

                <small id='5Xher'></small><noframes id='5Xher'>

              1. <legend id='5Xher'><style id='5Xher'><dir id='5Xher'><q id='5Xher'></q></dir></style></legend>
                • <bdo id='5Xher'></bdo><ul id='5Xher'></ul>

                    <tbody id='5Xher'></tbody>

                • <i id='5Xher'><tr id='5Xher'><dt id='5Xher'><q id='5Xher'><span id='5Xher'><b id='5Xher'><form id='5Xher'><ins id='5Xher'></ins><ul id='5Xher'></ul><sub id='5Xher'></sub></form><legend id='5Xher'></legend><bdo id='5Xher'><pre id='5Xher'><center id='5Xher'></center></pre></bdo></b><th id='5Xher'></th></span></q></dt></tr></i><div id='5Xher'><tfoot id='5Xher'></tfoot><dl id='5Xher'><fieldset id='5Xher'></fieldset></dl></div>

                  本文介绍了Pytest 版本冲突错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Debian (Jessie) 更新后,pytest 不起作用:

                  After update of Debian (Jessie), pytest doesn't work :

                  #py.test
                  
                  Traceback (most recent call last):
                    File "/usr/bin/py.test", line 5, in <module>
                      sys.exit(load_entry_point('pytest==2.4.2', 'console_scripts', 'py.test')())
                    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 348, in      load_entry_point
                      return get_distribution(dist).load_entry_point(group, name)
                    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2311, in     load_entry_point
                      return ep.load()
                    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2024, in load
                      if require: self.require(env, installer)
                    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2037, in require
                      working_set.resolve(self.dist.requires(self.extras),env,installer)))
                    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 571, in resolve
                      raise VersionConflict(dist,req) # XXX put more info here
                  pkg_resources.VersionConflict: (py 1.4.15 (/usr/lib/python2.7/dist-packages), Requirement.parse('py>=1.4.17'))
                  

                  如何解决此错误?提前谢谢!

                  How can I fix this error? Thanx in advance!

                  推荐答案

                  /usr/local/lib/python2.7/dist-packages中的文件属于你用pip安装的python包,easy_install 或 python setup.py.系统更新可能弄乱了一些依赖项.这行得通吗?

                  The files in /usr/local/lib/python2.7/dist-packages belong to python packages you installed with pip, easy_install or python setup.py. The system update probably messed up some dependencies. Does this work?

                  sudo apt-get install python-pip
                  sudo /usr/bin/pip install -U pytest
                  

                  这篇关于Pytest 版本冲突错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)
                • <legend id='qbsjl'><style id='qbsjl'><dir id='qbsjl'><q id='qbsjl'></q></dir></style></legend>

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

                      • <i id='qbsjl'><tr id='qbsjl'><dt id='qbsjl'><q id='qbsjl'><span id='qbsjl'><b id='qbsjl'><form id='qbsjl'><ins id='qbsjl'></ins><ul id='qbsjl'></ul><sub id='qbsjl'></sub></form><legend id='qbsjl'></legend><bdo id='qbsjl'><pre id='qbsjl'><center id='qbsjl'></center></pre></bdo></b><th id='qbsjl'></th></span></q></dt></tr></i><div id='qbsjl'><tfoot id='qbsjl'></tfoot><dl id='qbsjl'><fieldset id='qbsjl'></fieldset></dl></div>
                          <tbody id='qbsjl'></tbody>
                      • <tfoot id='qbsjl'></tfoot>
                            <bdo id='qbsjl'></bdo><ul id='qbsjl'></ul>