I am a high school student who programs in his free time, which includes on the school computer when I have the chance. However, every year when school lets out for the summer, they wipe the computer's memory. I have installed a lot of python modules over last year and saved all my programs to my home computer. However, I realized that when we get our laptops, I will have to go through the setup process for python again, and re install all the modules. Is there any way I can get a list of all python modules I have had to install so that I can write a script to install all the modules so I dont have to spend a few hours doing it all manually?
I have tried using
pip list
and
python -c 'help("modules")'
both gave me a list of every module on the computer, most of which are there by default and do not need the install command to get.
You can use pip freeze with or without --all depending what level of installed packages you'd like to see.
pip freeze --all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With