Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to get a list of all modules that were installed with pip install command? [duplicate]

Tags:

python

pip

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.

like image 494
griffingreat1 Avatar asked Dec 18 '25 09:12

griffingreat1


1 Answers

You can use pip freeze with or without --all depending what level of installed packages you'd like to see.

pip freeze --all
like image 81
Alex O. Avatar answered Dec 20 '25 21:12

Alex O.