あなたのバージョンのpytest-cov
ニーズに合わせて、 to をpytest==3.4.2
簡単に編集してくださいrequirements.txt
urllib3==1.22
cx_freeze==6.0b1
pytest==3.4.2
pytest-cov==2.5.1
pytest-dependency==0.2
初めて助けてくれましたが、今では 3.2.2 でも動作します
$ workon ptest
(ptest) $ python -V
Python 3.5.3
インストールを見て
(ptest) $ pip freeze
attrs==17.4.0
coverage==4.5.1
pluggy==0.6.0
py==1.5.2
six==1.11.0
インストール
(ptest) $ cat requirements.txt
urllib3==1.22
cx_freeze==6.0b1
pytest==3.2.2
pytest-cov==2.5.1
pytest-dependency==0.2
(ptest) $ pip install -r requirements.txt
Collecting urllib3==1.22 (from -r requirements.txt (line 1))
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting cx_freeze==6.0b1 (from -r requirements.txt (line 2))
Collecting pytest==3.2.2 (from -r requirements.txt (line 3))
Using cached pytest-3.2.2-py2.py3-none-any.whl
Collecting pytest-cov==2.5.1 (from -r requirements.txt (line 4))
Using cached pytest_cov-2.5.1-py2.py3-none-any.whl
Collecting pytest-dependency==0.2 (from -r requirements.txt (line 5))
Requirement already satisfied: setuptools in /home/user/.virtualenvs/ptest/lib/python3.5/site-packages (from pytest==3.2.2->-r requirements.txt (line 3))
Requirement already satisfied: py>=1.4.33 in /home/user/.virtualenvs/ptest/lib/python3.5/site-packages (from pytest==3.2.2->-r requirements.txt (line 3))
Requirement already satisfied: coverage>=3.7.1 in /home/user/.virtualenvs/ptest/lib/python3.5/site-packages (from pytest-cov==2.5.1->-r requirements.txt (line 4))
Installing collected packages: urllib3, cx-freeze, pytest, pytest-cov, pytest-dependency
Successfully installed cx-freeze-6.0b1 pytest-3.2.2 pytest-cov-2.5.1 pytest-dependency-0.2 urllib3-1.22
確認してください
(ptest) $ pip freeze
attrs==17.4.0
coverage==4.5.1
cx-Freeze==6.0b1
pluggy==0.6.0
py==1.5.2
pytest==3.2.2
pytest-cov==2.5.1
pytest-dependency==0.2
six==1.11.0
urllib3==1.2