On your command line, just type pip install django-ptree.
Prerequisites
Setting up your Django project
Enter search terms or a module, class or function name.