{% extends "documentation/doc_base.html" %} {% block title %} OQMD | Documentation - qmpy {% endblock %} {% block extrahead %} {% endblock %} {% block content %}

Documentation: qmpy

Download and installation

Recommended

Install qmpy using:
pip install --upgrade numpy
pip install matplotlib
pip install qmpy
Download the database here.

From source

Download qmpy here
You will need to make sure several dependency packages are properly installed:

Integrating the database

To use the downloaded database, you must place the entire database directory into into your mysql data directory, (most likely /var/lib/mysql/). Make sure that the database directory, and all files within it are owned by the user 'mysql'. Finally, once this is done you need to give any users that will be accessing the database permissions. Do this from the mysql command line,
GRANT ALL PRIVILEGES ON *.* to '[username]'@'localhost';
. Once this is done, you need to edit qmpy/db/settings.py. Set the DATABASES variable such that 'USER' is the user with permissions to access the newly installed database. {% endblock %}