Install OpenMM Python API to a specific directory

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Xinqiang Ding
Posts: 33
Joined: Tue May 05, 2015 2:27 pm

Install OpenMM Python API to a specific directory

Post by Xinqiang Ding » Wed Jun 30, 2021 9:11 am

Hello OpenMM Team,

I am trying to compile OpenMM from source and install the Python API under my home directory on a cluster for which I don't have root access. The PYTHON_EXECUTBLE variable is set to the python executable provided by the cluster administer. When I run "make PythonInstall", OpenMM tries to put the Python API to a directory for which I don't have writing permission. How can I tell OpenMM to install the python wrapper to a specific directory under my home directory?

Thanks.

User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

Re: Install OpenMM Python API to a specific directory

Post by Peter Eastman » Wed Jun 30, 2021 9:46 am

Usually it's best to install your own Python inside your home directory. That way you aren't limited by whatever is preinstalled on the cluster (which often is a fairly old version), and you can easily install whatever packages you want. I generally use Miniconda (https://docs.conda.io/en/latest/miniconda.html).

User avatar
Samuel Lotz
Posts: 23
Joined: Mon Jan 18, 2016 11:39 am

Re: Install OpenMM Python API to a specific directory

Post by Samuel Lotz » Wed Jul 28, 2021 7:33 am

I think the way to do this is to build the dists individually by running:

Code: Select all

make PythonSdist
and/or

Code: Select all

make PythonBdist
and then copying those to your python installation or put on your python path.

POST REPLY