Reputation: 241
How to make a python file, which installs the mentioned python packages, on running that python file in console instead of installing packages one by one as we do by using pip I am also confused with setup.py is it same and if it is how to do please help
Upvotes: 1
Views: 2610
Reputation: 2561
You can make one text file which has your name of package requirements. Like this is requirement.txt
requests==2.7.0
selenium==3.4.3
Flask==0.10.1
retrying==1.3.3
then you can run it like
pip install -r requirement.txt
Note: Place this txt
file to at where the pip
is.
And for how this differs from the setup.py
you can refer this
Upvotes: 1