[Python] Is there any way to get a list of all modules that were installed with pip install...

Discussão em 'Python' iniciado por Stack, Setembro 17, 2024.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página