I would like to install the modules \'mutagen\' and \'gTTS\' for my code, but I want to have it so it will install the modules on every computer that doesn\'t have them, but it
If you want to know if a package installed, you can check it in your terminal using the next command:
pip list | grep
How this works:
pip list
lists all modules installed in your Python.
The vertical bar | is commonly referred to as a "pipe". It is used to pipe one command into another. That is, it directs the output from the first command into the input for the second command.
grep
find the keyword from the list.
Example:
pip list| grep quant
Lists all packages which start from "quant" (for example "quantstrats"). If you do not have any output, this means the library is not installed.