This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Install FEniCS on mac using a different Python version

+1 vote

Hi,

I have a mac 10.10.1 with Python 2.7.9 installed by default. When I install FEniCS, it installs its own Python version, causing problems with other Python modules. Is there a way to install FEniCS such that it uses the default Python version of my mac? Can it be done from terminal?

Thanks for any help,

Adriaan

asked Mar 9, 2015 by Adriaan FEniCS Novice (660 points)

1 Answer

0 votes

If you use the fenics-install.sh script to install FEniCS, it will by default build and use its own Python. If you want to use system Python, set the following environment variable and run fenics-install.sh again:

export FENICS_INSTALL_USE_HOST_PYTHON=1

The binary package for OS X also uses the system Python.

answered Mar 10, 2015 by johannr FEniCS Expert (17,350 points)
...