Search code examples
pythondjangogoogle-analyticspipgoogle-analytics-api

Know if django-google-analytics-app was installed


I am trying to install the Google Analytics apps in Django and when trying:

django-google-analytics-app --version

django-google-analytics-app -V

which django-google-analytics-app

I either get

zsh: command not found: django-google-analytics-app

or

django-google-analytics-app not found

How could I check if this app has been installed and how could I check its version?


Solution

  • django-google-analytics-app will not give you a binary file to get the version against. You can run the following command to see if the package is installed.

    pip freeze | grep "django-google-analytics-app"
    

    If this command gives you some output similar to

    django-google-analytics-app==<version>
    

    then the package is installed. If there is no output then the package is not installed