TLDR on Making Repo Pip Installable #14172
Unanswered
raunakdoesdev
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried digging through the setup.py file and some other aspects of the repo to try and understand how it is able to pip install so cleanly with Pytorch as a dependency
I'm struggling with this in my own project, so would appreciate any insight from project maintainers. The main problem I run into is that I cannot include torch as an "install_requires" dependency as this ends up installing a cpu version by default. I really like how lightning does it, where if torch is already installed it respects that dependency and if it is not then it installs a cpu version by default.
Beta Was this translation helpful? Give feedback.
All reactions