I don’t really know why this happens (poetry removes packages without any directive to do it).
Is there a workaround? I’ve read the docs & that’s how you are supposed to use it.
For context, I’m using poetry 1.8 within my conda environment. Some packages I have to install with conda, others with pip (some that fail with poetry), others with poetry.
poetry add pandas
Using version ^2.2.2 for pandas
Updating dependencies
Resolving dependencies... (0.2s)
Package operations: 4 installs, 0 updates, 38 removals
- Removing pip (24.0)
- Removing absl-py (2.1.0)
- Removing astunparse (1.6.3)
- Removing certifi (2024.2.2)
- Removing charset-normalizer (3.3.2)
- Removing flatbuffers (24.3.25)
- Removing gast (0.5.4)
- Removing google-pasta (0.2.0)
- Removing grpcio (1.64.0)
...