Can't install openmc in ubuntu

What causes the code below to get an error when installing openmc ?

tsania@tsaniaeksa:~/openmc$ cd …
tsania@tsaniaeksa:~$ pip3 install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip
Complete output from command python setup.py egg_info:
Running from numpy source directory.
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-hm2ezm8t/numpy/setup.py”, line 82, in
from numpy.distutils.core import numpy_cmdclass
File “/tmp/pip-build-hm2ezm8t/numpy/numpy/distutils/core.py”, line 24, in
from numpy.distutils.command import config, config_compiler,
File “/tmp/pip-build-hm2ezm8t/numpy/numpy/distutils/command/build_ext.py”, line 16, in
from numpy.distutils.system_info import combine_paths
File “/tmp/pip-build-hm2ezm8t/numpy/numpy/distutils/system_info.py”, line 375, in
so_ext = get_shared_lib_extension()
File “/tmp/pip-build-hm2ezm8t/numpy/numpy/distutils/misc_util.py”, line 661, in get_shared_lib_extension
confvars = distutils.sysconfig.get_config_vars()
File “/usr/lib/python3.7/distutils/sysconfig.py”, line 508, in get_config_vars
func()
File “/usr/lib/python3.7/distutils/sysconfig.py”, line 468, in _init_posix
_temp = import(name, globals(), locals(), [‘build_time_vars’], 0)
ModuleNotFoundError: No module named ‘_sysconfigdata_m_linux_x86_64-linux-gnu’

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-hm2ezm8t/numpy/
tsania@tsaniaeksa:~$

This looks like an issue with installing NumPy, not OpenMC. Are you planning to install OpenMC from source? If not, you can install OpenMC using conda/mamba and it should install numpy during the openmc installation so you don’t have to do a separate pip install of numpy.