How to include a package with a different name with python-poetry?
I have a multi-language project, say project
, and I want to organize language-specific libraries in src/
like this
How to install cpu and gpu version of torch using poetry
I am trying to install cpu and gpu version of torch
and torchvision
respectively, using poetry install --with cpu
and poetry install --with gpu
. I have the following in my pyproject.toml
:
Poetry installing additional packages which are not seem to be needed
I’m feeling really stupid with this, but can’t find an answer for a long time. The problem is the following: trying to start using Poetry as a dependency manager. However, any time I install it and initialize a new poetry project, after the creation of the base pyproject.toml file it adds a lot of additional packages and dependencies in poetry.lock file, even if they’re not used anywhere and seems not to be connected with my needed packages.