# Python interface with Spack

**URL:** <https://precice.discourse.group/t/python-interface-with-spack/86>\
**Category:** Installing preCICE\
**Tags:** python, spack\
**Created:** [November 9, 2019, 9:02am UTC](https://precice.discourse.group/t/python-interface-with-spack/86 "2019-11-09T09:02:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfolkersma](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mfolkersma](https://precice.discourse.group/u/mfolkersma)\
**Post date:** [November 9, 2019, 9:02am UTC](https://precice.discourse.group/t/python-interface-with-spack/86/1 "2019-11-09T09:02:15Z")

</div>

Hi,

I installed preCICE on a cluster using Spack with python=True flag. How can I import the preCICE interface in Python? Folders src/precice/bindings/python\_future/ and src/precice/bindings/python/ do not contain any Python or shared object files.

Best, Mikko

---

<div class="post-metadata">

**Author:** ![BenjaminRodenberg](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/benjaminrodenberg/32/17_2.png) [@BenjaminRodenberg](https://precice.discourse.group/u/BenjaminRodenberg)\
**Post date:** [November 11, 2019, 3:27pm UTC](https://precice.discourse.group/t/python-interface-with-spack/86/2 "2019-11-11T15:27:30Z")

</div>

Hi,

not including the python bindings in the Spack package is intentional. The proper distribution of the Python bindings is still an open todo (see for example [https://github.com/precice/precice/issues/436](https://github.com/precice/precice/issues/436), [https://github.com/precice/precice/issues/512](https://github.com/precice/precice/issues/512), [https://github.com/precice/precice/issues/381](https://github.com/precice/precice/issues/381)).

As a workaround for your problem, I suggest that you clone preCICE from git (make sure you use the same version that you are using with Spack). This will give you everything you need for installing the python bindings using pip. Now install the python bindings. This is ugly, but currently necessary.

Our future plan is to put the python bindings into an independent repository and get rid of everything that is related to the python bindings within [precice/precice](https://github.com/precice/precice), soon. If you want, you can also [open an issue](https://github.com/precice/precice/issues) for your problem or add a comment in one of the already existing ones.

Best, Benjamin
