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.