[PYTHON] AssertionError in Poetry may be fixed by modifying pyproject.toml

It is written at https://github.com/python-poetry/poetry/issues/1051.

You cannot install a module with the same name as the name field in[tool.poetry]of pyproject.toml. I'm convinced that Poetry was originally created with module development in mind.

  [tool.poetry]
+ name = "mypulp"
- name = "pulp"
  version = "0.1.0"
  description = ""
  authors = ["Your Name <[email protected]>"]

In my case, when I tried the PuLP module, I ran poetry init in a directory called pulp. Since the initial value was used, the module name in pyproject.toml was pulp, so pulp could not be installed via poetry.

By the way, if it is pip, it can be installed without any problem.

Recommended Posts

AssertionError in Poetry may be fixed by modifying pyproject.toml
PyQtGraph may not be available in the interpreter.
Qiitadon icon may not be changed by API