Pipenv: pytest-covを使用してpytestをインストールすると、依存関係を解決できませんでした

作成日 2018年08月01日  ·  3コメント  ·  ソース: pypa/pipenv

問題の説明

依存関係が解決されないと文句を言うので、pytestとpytest-covをインストールできません。

複製して出力する手順

私のPipfile

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
pytest = "*"
pytest-cov = "*"

[dev-packages]

[requires]
python_version = "3.6"
 $ pipenv install
Pipfile.lock (ca72e7) out of date, updating to (4ccbf7)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...

Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
Could not find a version that matches pluggy<0.7,>=0.5,>=0.7
Tried: 0.3.0, 0.3.0, 0.3.1, 0.3.1, 0.4.0, 0.4.0, 0.5.0, 0.5.1, 0.5.1, 0.5.2, 0.5.2, 0.6.0, 0.6.0, 0.6.0, 0.7.1, 0.7.1
There are incompatible versions in the resolved dependencies.

次に、次のことを行います。

$ pipenv install --skip-lock
$ pipenv graph
pytest-cov==2.5.1
  - coverage [required: >=3.7.1, installed: 4.5.1]
  - pytest [required: >=2.6.0, installed: 3.7.0]
    - atomicwrites [required: >=1.0, installed: 1.1.5]
    - attrs [required: >=17.4.0, installed: 18.1.0]
    - more-itertools [required: >=4.0.0, installed: 4.3.0]
      - six [required: >=1.0.0,<2.0.0, installed: 1.11.0]
    - pluggy [required: >=0.7, installed: 0.7.1]
    - py [required: >=1.5.0, installed: 1.5.4]
    - setuptools [required: Any, installed: 40.0.0]
    - six [required: >=1.10.0, installed: 1.11.0]

依存関係は問題ないように見えます。

最も参考になるコメント

これは本当に閉じる必要がありますか? pipenv側にはいくつかの改善点があると思います。

  • どのパッケージが特定の制約に解決されるかをユーザーに説明し、これが発生する理由についても説明します
  • ユーザーに何をすべきかについてのヒントを与える:a)ロックをクリアする、b)何か他のものなど

全てのコメント3件

pipenv lock --clearはこれを修正します

これは本当に閉じる必要がありますか? pipenv側にはいくつかの改善点があると思います。

  • どのパッケージが特定の制約に解決されるかをユーザーに説明し、これが発生する理由についても説明します
  • ユーザーに何をすべきかについてのヒントを与える:a)ロックをクリアする、b)何か他のものなど

ああ: https

このページは役に立ちましたか?
0 / 5 - 0 評価