I am coming from Java background and completely new at Python.
Now I have got a small project with a few Python files that contain a few imports. I know I does not have the imported dependencies installed on my computer, so I try to figure out the required dependencies and run pip
to install them.
I would like to do it differently. I would prefer to have the dependencies listed in a single file and install them automatically during the build process.
Does it make sense ? If it does I have a few questions:
- How to list the project dependencies required to install by
pip
?
- How to run
pip
to install the dependencies from the list ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…