# Fenics-ufl ModuleNotFoundError: No module named 'pkg\_resources'

**URL:** <https://fenicsproject.discourse.group/t/fenics-ufl-modulenotfounderror-no-module-named-pkg-resources/19482>\
**Category:** General\
**Created:** [February 10, 2026, 7:08pm UTC](https://fenicsproject.discourse.group/t/fenics-ufl-modulenotfounderror-no-module-named-pkg-resources/19482 "2026-02-10T19:08:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![duarte-jfs](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/duarte-jfs/32/9358_2.png) [@duarte-jfs](https://fenicsproject.discourse.group/u/duarte-jfs)\
**Post date:** [February 10, 2026, 7:08pm UTC](https://fenicsproject.discourse.group/t/fenics-ufl-modulenotfounderror-no-module-named-pkg-resources/19482/1 "2026-02-10T19:08:53Z")

</div>

I am trying to install gyptis package and I am doing so through windows WSL. This is the list of commands I did:

```auto
1 curl -O https://repo.anaconda.com/archive/Anaconda3-2025.12-2-Linux-x86_64.sh
    2 sha256sum ~/Anaconda3-2025.12-2-Linux-x86_64.sh
    3 bash ~/Anaconda3-2025.12-2-Linux-x86_64.sh
    4 source ~/.bashrc
    5 ls
    6 mkdir python_packages
    7 cd python_packages
    8 git clone https://gitlab.com/gyptis/gyptis.git
    9 cd gyptis
   10 conda config --add channels conda-forge
   11 conda config --set channel_priority strict
   12 conda env create -f environment.yml
   13 conda activate gyptis
   14 python

```

Inside python I do import gyptis and the traceback I get is:

Tra

```auto
ceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/duartejfs/anaconda3/envs/gyptis/lib/python3.12/site-packages/gyptis/ __init__.py", line 89, in <module>
    import dolfin
  File "/home/duartejfs/anaconda3/envs/gyptis/lib/python3.12/site-packages/dolfin/ __init__.py", line 135, in <module>
    from . import mesh
  File "/home/duartejfs/anaconda3/envs/gyptis/lib/python3.12/site-packages/dolfin/mesh/ __init__.py", line 1, in <module>
    import ufl
  File "/home/duartejfs/anaconda3/envs/gyptis/lib/python3.12/site-packages/ufl/ __init__.py", line 250, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

```

I cannot find the root cause of this.

---

<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:** [February 11, 2026, 10:25am UTC](https://fenicsproject.discourse.group/t/fenics-ufl-modulenotfounderror-no-module-named-pkg-resources/19482/2 "2026-02-11T10:25:48Z")

</div>

Issue is likely related to [Can't use legacy ufl with setuptools 82 · Issue #16 · conda-forge/fenics-ufl-feedstock · GitHub](https://github.com/conda-forge/fenics-ufl-feedstock/issues/16)
