This Python script allows you to install multiple Python packages concurrently using pip with the help of multi-threading. It divides the list of packages into threads, improving the installation speed and efficiency.
- Python 3.x
- pip
- Clone or download this repository to your local machine.
- Create a text file named
modules.txt
and list the Python packages you want to install, one package per line. - Run the script
pip_installer.py
and enter the number of threads you want to use for the installation. - The script will automatically install the specified packages concurrently.
$ python pip_installer.py
Enter the number of threads: 4
Time taken: 12.348 seconds
Press Enter to exit...
The script uses the pip install command for each package, so make sure you have pip installed and configured correctly in your Python environment. css