英文:
how to find exact modules of python which are there on my windows machine
问题
I work on python. My laptop is going to change to a new laptop.
Is there a command which i can run on my old laptop to see which python modules are installed,
and by which commands have i installed them?
so that I can ran that file on my new laptop to install all of them.
英文:
I work on python. My laptop is going to change to a new laptop.
Is there a command which i can run on my old laptop to see which python modules are installed,
and by which commands have i installed them?
so that I can ran that file on my new laptop to install all of them.
答案1
得分: 2
Open a Powershell terminal and use pip like this pip freeze > requirements.txt this will list all your modules inside the file requirements.txt, then copy this file to your new computer and then on it run this to install all the previous modules pip install -r requirements.txt。
(Note: This is the translation of the code-related text you provided.)
英文:
Open a Powershell terminal and use pip like this pip freeze > requirements.txt this will list all your modules inside the file requirements.txt, then copy this file to your new computer and then on it run this to install all the previous modules pip install -r requirements.txt
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论