I have a (Django) project with lots of imports that I started without virtualenv. Is there a way to
pip freeze
only the Python packages that are actually imported somewhere in the project, i.e. they are required by my project?
pip freeze
would list all the packages installed in my system, but I would only need those ones that are used by my project.