• <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 版本冲突错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  What happens when you compare 2 pandas Series(当你比较 2 个 pandas 系列时会发生什么)
                  Quickly find differences between two large text files(快速查找两个大文本文件之间的差异)
                  Python - Compare 2 files and output differences(Python - 比较 2 个文件和输出差异)
                  Why do comparisions between very large float values fail in python?(为什么在 python 中非常大的浮点值之间的比较会失败?)
                  Dictionary merge by updating but not overwriting if value exists(字典通过更新合并,但如果值存在则不覆盖)
                  Find entries of one text file in another file in python(在python中的另一个文件中查找一个文本文件的条目)
                • <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>