# Installing Femorph via pip

**URL:** <https://fenicsproject.discourse.group/t/installing-femorph-via-pip/4845>\
**Category:** installation\
**Created:** [January 6, 2021, 1:16pm UTC](https://fenicsproject.discourse.group/t/installing-femorph-via-pip/4845 "2021-01-06T13:16:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heitorvc](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/heitorvc/32/754_2.png) [@heitorvc](https://fenicsproject.discourse.group/u/heitorvc)\
**Post date:** [January 6, 2021, 1:16pm UTC](https://fenicsproject.discourse.group/t/installing-femorph-via-pip/4845/1 "2021-01-06T13:16:02Z")

</div>

Hello everyone. I’m working on a free surface flow using the ALE method to update the surface position. I’m having some issues regarding the mesh deformation - some elements are very distorced and sometimes they become just lines. The initial domain is given from a mesh file converted from GMSH to xml. I’m following [this thread](https://fenicsproject.discourse.group/t/re-meshing-in-fluid-structure-interaction/1190) to remesh the domain according to a given boundary. I haven’t tested the solution yet, as I’m struggling to install Femorph via PIP. I’m following [these](https://bitbucket.org/Epoxid/femorph/pull-requests/3/update-femorph-master-to-201810/diff) instructions to install Femorph via pip in a ubuntu 18.04 WSL, but I’m getting the error:

`Directory '.' is not installable. File 'setup.py' not found.`

Maybe this error is happening because I’m not using a virtual environment? I work on 3+ projects with fenics, so I chose to install fenics locally instead of using a venv. Just guessing. I’m trying to avoid using docker for now, but if there is no other option, I’ll follow the installation instructions for it.

Any advices?

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [January 6, 2021, 1:35pm UTC](https://fenicsproject.discourse.group/t/installing-femorph-via-pip/4845/2 "2021-01-06T13:35:06Z")

</div>

Note that you need to use the branch of femorph from the PR (dokken/restructuring) as this branch introduces the pip-installation feature.

---

<div class="post-metadata">

**Author:** ![heitorvc](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/heitorvc/32/754_2.png) [@heitorvc](https://fenicsproject.discourse.group/u/heitorvc)\
**Post date:** [January 6, 2021, 7:08pm UTC](https://fenicsproject.discourse.group/t/installing-femorph-via-pip/4845/3 "2021-01-06T19:08:24Z")

</div>

Thanks for the reply, I managed to successfully  
install the package via pip.
