0

I have been using django for my web project. I forgot to add requirements.txt file. Now I have already installed so many apps even third party apps. How do I know which version of apps I have been installed and their names?

Comand line

This is the comand line I used to know which apps been using in the django project but the thing is I can only get the few app names with this comand not the version.

python manage.py makemigrations
Mihai Chelaru
  • 7,614
  • 14
  • 45
  • 51
Sanjay
  • 53
  • 2
  • 11
  • You can use `pip freeze` to obtain the list of installed packages. – Willem Van Onsem Oct 21 '19 at 10:25
  • 3
    you can use `pip freeze > requirement.txt` will create requiremen.txt file containing all packages with version.Hope it will help you. – Moon Oct 21 '19 at 10:30
  • @Moon Thank you for this valuable information – Sanjay Oct 21 '19 at 10:41
  • Welcome on SO, I have the impression you have profoundly edited your question in to a new one. Why have you edited entirely into a new question ? I think you'd rather ask a new question instead. You'd get more related answers. – Stephane Rolland Oct 23 '19 at 12:04
  • 1
    Please don't edit your question to be something completely different from what you asked before, especially if you already have an answer and it was marked as a duplicate. This creates confusion and is not how this site functions. Instead, create a new question and ask about your other problems there. – Mihai Chelaru Oct 23 '19 at 12:11

1 Answers1

0

For creating requirements.txt file, run the following command inside the virtual environment:

pip freeze > requirements.txt

It will create a requirements.txt file and prints the list of all the installed packages with their versions into the requirements.txt file.

Hamidreza
  • 1,465
  • 12
  • 31
Usman Maqbool
  • 3,351
  • 10
  • 31
  • 48