InstallationΒΆ
Before installing MISPR, you need to follow the steps below in order:
(Optional) Create a Conda environment
Make sure you have access to the computational chemistry software dependencies needed to run the DFT and MD simulations
Install python package dependencies
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ΒΆ
MISPR can be installed either from the python package index (good for most users) or directly from its GitHub repository (good for developers).
Installation Method 1: Using pipΒΆ
For most users, install directly from PyPI:
pip install mispr
Installation Method 2: Development modeΒΆ
For developers or users who need to modify the source code, install MISPR 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 package 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 package you want to install in development mode using git:
git clone https://github.com/molmd/mispr.git
Now you should have mispr directory in your
codes
directory.cd
into the mispr directory and runpip install -e .
or use theconda
equivalent. Once installed, if you make changes to the code, 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 commandimport mispr
executes without any errorsTo update the mispr code later on, execute
git pull
followed bypip install -e .
or theconda
equivalent in the mispr directory. If you installed via pip, you can simply executepip install --upgrade mispr
.