1

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

1
  • As you mentioned, you can use pip and create requirement.txt file to install required packages. Commented Dec 22, 2017 at 12:22

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

3 Comments

is it a python file?
No it's a text file.
so what was the question?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.