Issues importing tensorflow post-install

Thanks in advance for any help. Running Ubuntu 22.04, working with Python 3.9 in Spyder using the most recent version of tensorflow.

Restarting the kernel post install and run an import which returns the following:

import tensorflow as tf
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xe

Traceback (most recent call last):

  File "/tmp/ipykernel_275746/", line 1, in <module>
    import tensorflow as tf

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/", line 48, in <module>
    from tensorflow._api.v2 import __internal__

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/_api/v2/__internal__/", line 11, in <module>
    from tensorflow._api.v2.__internal__ import distribute

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/_api/v2/__internal__/distribute/", line 8, in <module>
    from tensorflow._api.v2.__internal__.distribute import combinations

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/_api/v2/__internal__/distribute/combinations/", line 8, in <module>
    from tensorflow.python.distribute.combinations import env # line: 456

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/distribute/", line 33, in <module>
    from tensorflow.python.distribute import collective_all_reduce_strategy

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/distribute/", line 25, in <module>
    from tensorflow.python.distribute import cross_device_ops as cross_device_ops_lib

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/distribute/", line 28, in <module>
    from tensorflow.python.distribute import cross_device_utils

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/distribute/", line 22, in <module>
    from tensorflow.python.distribute import values as value_lib

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/distribute/", line 23, in <module>
    from tensorflow.python.distribute import distribute_lib

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/distribute/", line 206, in <module>
    from import dataset_ops

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/data/ops/", line 33, in <module>
    from import iterator_ops

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/data/ops/", line 41, in <module>
    from import BaseSaverBuilder

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/training/", line 50, in <module>
    from import py_checkpoint_reader

  File "/home/chris/anaconda3/lib/python3.9/site-packages/tensorflow/python/training/", line 19, in <module>
    from tensorflow.python.util._pywrap_checkpoint_reader import CheckpointReader

SystemError: initialization of _pywrap_checkpoint_reader raised unreported exception

Have updated NumPy (based on reference to numpy versions at beginning of err message) to no effect. Working on a machine with a non-CUDA GPU (Intel UHD 620) but wouldn’t think that would cause an issue here.

What am I missing?

Hi @Chris_D .
My naive suggestion.
Can’t you simply un-install both numpy and Tensorflow. You then re-install Tensorflow making sure missing dependencies also get installed (sudo, pip or whatever method)?

Hi @Chris_D

Welcome to the TensorFlow Forum!

It seems, TensorFlow could not install in your system correctly. Could you please let us know the installed TensorFlow version in your system and How did you install? You can refer to the TensorFlow Install official link to install TensorFlow by fulfilling the Hardware/ Software Requirements and by following the mentioned step by step instructions in the same page.

Please let us know if the issue still persists. Thank you!