LoginSignup
6
2

More than 3 years have passed since last update.

Poetry での AssertionError は pyproject.toml を変更すると直る可能性がある

Posted at

https://github.com/python-poetry/poetry/issues/1051 に書いてある。

pyproject.toml[tool.poetry] にある name フィールドと同名のモジュールをインストールすることはできない。 Poetry がもともとモジュール開発を意識して作られたことから、納得できる。

  [tool.poetry]
+ name = "mypulp"
- name = "pulp"
  version = "0.1.0"
  description = ""
  authors = ["Your Name <you@example.com>"]

私の場合は PuLP モジュールを試すときに pulp というディレクトリで poetry init を実行した。初期値を使ったため pyproject.toml の中のモジュール名が pulp になっていたため poetry 経由で pulp のインストールができなかった。

ちなみに、 pip であれば問題なくインストールできる。

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2