To check which packages are installed in your Django project, you can use the pip command along with the freeze option. Here's how you can do it:
Open a command prompt or terminal.
Navigate to your Django project directory.
Activate the virtual environment if you are using one. (Optional, but recommended)
Run the following command:
pip freeze
This command will display a list of all the packages installed in your Django project along with their versions.
If you want to save the list to a text file, you can use the following command:
pip freeze > requirements.txt
This will create a file named requirements.txt in your current directory containing the list of installed packages and their versions.
The pip freeze command lists all packages installed in the active Python environment, including both Django and any additional packages you may have installed for your project.
By running this command, you can easily check which packages are installed in your Django project and share the list with others or use it for deployment or development purposes.
Top comments (0)