# Development environment: pytest version conflict

**URL:** <https://discourse.mopidy.com/t/development-environment-pytest-version-conflict/1723>\
**Category:** Misc\
**Created:** [July 10, 2017, 8:38am UTC](https://discourse.mopidy.com/t/development-environment-pytest-version-conflict/1723 "2017-07-10T08:38:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Jaworowski](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Alexander\_Jaworowski](https://discourse.mopidy.com/u/Alexander_Jaworowski)\
**Post date:** [July 10, 2017, 8:38am UTC](https://discourse.mopidy.com/t/development-environment-pytest-version-conflict/1723/1 "2017-07-10T08:38:42Z")

</div>

Followed the dev env setup instructions in the [docs](https://docs.mopidy.com/en/latest/devenv/) and got VersionConflict for pytest:

```
(mopidy) aj@aj-XPS-L412Z:~/mopidy-dev/mopidy$ pytest -f
Traceback (most recent call last):
  ...
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/ __init__.py", line 859, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pytest 2.8.2 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('pytest>=3.0.0'))

```

Resolved this by updating the global pytest:

```
aj@aj-XPS-L412Z:~/mopidy-dev/mopidy$ sudo pip2 install -U pytest

```

But should this be necessary? We are running in the virtualenv were we have installed all the requirements.

See also this [post](https://discourse.mopidy.com/t/installing-the-dev-environment-missing-dependency/1658), fix for the docs tests.
