How to install multiple Python Packages at once using pip/pip3 command

Example 1:

    You can install multiple Python Packages at once using pip/pip3 command by providing the package/module names separated by a space.

    # pip3 install requests numpy tensorflow spicy 

    This will install all the packages one after the other.

    Pip Install multiple packages at once

Example 2:

    It is better to define which all packages you want to install in a requirements.txt file and run it using the pip command as follows.

    pip install -r requirements.txt

    requirements.txt

    numpy
    pandas
    requests
    scipy

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!