A
A
Alexander Karadiaur2021-09-14 18:37:13
Python
Alexander Karadiaur, 2021-09-14 18:37:13

How can I find out what modules I use in the program?

I need to create requirements.txt, but I need to write all the modules that I use in my program. There is a pip freeze command, but it displays all the modules that I have downloaded to my PC. How can I find out which modules I use in the program with one command?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2021-09-14
@twiwter

You have to do it right from the start. Create a virtual environment, then in it - pip freeze
Or manually, but it's better to use the first option.
PS: You can also see crutches .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question