Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (12.7k points)
I might want to install all accessible modules for Python 2.7.12 utilizing a solitary pip command. Is there an approach to do this without determining each and every package name?

1 Answer

0 votes
by (26.4k points)

I energetically advise against doing this - the overwhelmingly upheld best practice is to utilize a requirements.txt document, posting the packages you need to introduce explicitly.

You have to install it with

pip install -r requirements.txt 

It also installs all the bundles(packages) for the project.

This also has several benefits:

  • Repeatability by installing only the required packages
  • Conciseness

I emphatically advise against this as it's probably going to do horrible things to your framework, as it will endeavor to introduce each python package (and why it's in spoiler labels).

Want to become a expert in Python? Join the python course fast!

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.6k users

Browse Categories

...