InstallationΒΆ
Before installing MISPR, you need to follow the steps below in order:
(Optional) Create a Virtual python environment
Make sure you have access to the Computational chemistry software needed to run the DFT and MD simulations
Install Materials Project base libraries
Set up MongoDB database
Prepare the configuration files
Note
Throughout the installation instructions, it is assumed that you are familiar with Python and with basic Linux shell commands. If not, Linux Journey and Python For Beginners are some recommended starting points.
Installing MISPR and MDPropToolsΒΆ
MISPR and MDPropTools can be installed either from the python package index (good for most users) or directly from their GitHub repositories (good for developers).
Installation Method 1: Using pipΒΆ
To install, simply type:
pip install mispr
pip install mdproptools
Installation Method 2: Development modeΒΆ
To make changes directly to the source and contribute to the development of MISPR, you can install MISPR and MDPropTools in development mode.
Note
If you had already installed MISPR via pip or conda, you should uninstall that first before starting the installation in development mode. This ensures that you will not have any conflicts resulting from two different code installations.
The steps for installing the packages in development mode are below.
Activate your conda environment or virtual environment
Create a
codes
directory in|CODES_DIR|
cd
to your newly created|CODES_DIR|/codes
directoryClone the packages you want to install in development mode using git:
git clone https://github.com/molmd/mdproptools.git git clone https://github.com/molmd/mispr.git
Now you should have mdproptools and mispr directories in your
codes
directory.For each of these packages,
cd
into their folders and runpip install -e .
or use theconda
equivalent. Once installed, if you make changes to the code in these packages, the changes will take effect immediately without having to reinstall the package.
Post-installationΒΆ
Before you go any further, confirm your package installations are correct. First start IPython by typing
ipython
in your terminal, then confirm that the commandsimport mdproptools
andimport mispr
execute without any errorsTo update these codes later on, execute
git pull
followed bypip install -e .
or theconda
equivalent in the corresponding folder if you installed in development mode. If you installed via pip, you can simply executepip install --upgrade mispr
.