Hello,
I am trying to install the stable version of fenics from source using the instructions from
https://fenics.readthedocs.io/en/latest/installation.html#from-source
It appears to succeed.
[apal@L01 ~]$ pip3 install --user fenics-ffc --upgrade
Collecting fenics-ffc
Using cached fenics_ffc-2019.1.0.post0-py3-none-any.whl (362 kB)
Collecting fenics-ufl<2019.2,>=2019.1.0
Using cached fenics_ufl-2019.1.0-py3-none-any.whl (282 kB)
Collecting fenics-fiat<2019.2,>=2019.1.0
Using cached fenics_fiat-2019.1.0-py3-none-any.whl (112 kB)
Collecting fenics-dijitso<2019.2,>=2019.1.0
Using cached fenics_dijitso-2019.1.0-py3-none-any.whl (46 kB)
Collecting numpy
Using cached numpy-1.21.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.8 MB)
Collecting sympy
Using cached sympy-1.8-py3-none-any.whl (6.1 MB)
Collecting mpmath>=0.19
Using cached mpmath-1.2.1-py3-none-any.whl (532 kB)
Installing collected packages: numpy, fenics-ufl, mpmath, sympy, fenics-fiat, fenics-dijitso, fenics-ffc
Successfully installed fenics-dijitso fenics-ffc fenics-fiat fenics-ufl mpmath numpy sympy
However, I get an import error with import fenics.
[apal@L01 ~]$ python -c "import re,numpy; print(re.compile('/__init__.py.*').sub('',numpy.__file__))"
/home/apal/.local/lib/python3.8/site-packages/numpy
[apal@L01 ~]$ python -c "import re,numpy,fenics; print(re.compile('/__init__.py.*').sub('',fenics.__file__))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'fenics'
Here are are contents of my PYTHONPATH and the folder with the installed packages.
[apal@L01 ~]$ tr ':' '\n' <<< "$PYTHONPATH"
/cm/shared/apps/spack-pkgs/py-pip-20.2/lib64/python3.8/site-packages
/cm/shared/apps/spack-pkgs/py-pip-20.2/lib/python3.8/site-packages
/home/apal/.local/lib/python3.8/site-packages/
[apal@L01 ~]$ ls ~/.local/lib/python3.8/site-packages/
dijitso fenics_fiat-2019.1.0.dist-info FIAT mpmath-1.2.1.dist-info numpy.libs sympy-1.8.dist-info
fenics_dijitso-2019.1.0.dist-info fenics_ufl-2019.1.0.dist-info isympy.py numpy __pycache__ ufl
fenics_ffc-2019.1.0.post0.dist-info ffc mpmath numpy-1.21.2.dist-info sympy
Thank you for your attention.