Install FEniCS on Ubuntu 18.04 with conda and jupyter notebook
21 May 2018 | FEniCS PythonFirst of all, DO NOT build from source because there will be en error when compiling DOLFIN.
Steps:
- Install FEniCS with conda:
conda create -n fenicsproject -c conda-forge fenics source activate fenicsproject
- Install
nb_conda_kernels
:conda install nb_conda_kernels
- Install other packages to this environment: ```bash conda install -n fenicsproject tensorflow pytorch matplotlib scipy =======
- Copy
libstdc++
to the environment where the version installed is too old:cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ~/.conda/envs/fenicsproject/lib/
- Open jupyter notebook, and choose Notebook:
Python [conda env:fenicsproject]
- Test:
from fenics import *