Poetry - how to install package with transitive dependency with markers #9290
Replies: 1 comment
-
Turns out that the problem was how openai-whisper packaged their distribution. The relevant pull request is here: openai/whisper#1887 The workaround is to install it directly from the repo for now since the merged change is still not available via pypi.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm currently working on a Python project where I'm using Poetry for dependency management and I'm having an issue with installing OpenAI Whisper on a green field project.
STEPS
Create an empty poetry project
poetry new poetry-demo
Navigate to the project directory
cd poetry-demo
Start a shell (creates a virtual env)
poetry shell
Install openai-whisper package
poetry add openai-whisper
This fails with
As can be seen in official GitHub repository for OpenAI whisper the repo has the following dependencies
So I'm trying to install
openai-whisper
package that has a transitive dependency to thetriton
package with markers (for linux platform). But I'm running this on Mac M3 (Apple Silicon). The triton package is specified with environment markers for x86_64 Linux machines, making it irrelevant to my setup.Is there any way to instruct poetry not to install that transitive dependency?
Has anyone here faced a similar situation or have suggestions on how to handle this? Any advice on how to configure my pyproject.toml or if there's a feature in Poetry that I'm missing would be greatly appreciated. I'm hoping to find a clean, maintainable solution that allows me to continue using this third-party package without manual hacks.
Thanks in advance for your insights and help!
Beta Was this translation helpful? Give feedback.
All reactions