Cannot use package due to "Python version mismatch"
Description:
I cannot import the package anywhere. This is the output of python -c "import tensorflow"
:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.11/site-packages/tensorflow/__init__.py", line 45, in <module>
from tensorflow.python import tf2 as _tf2
File "/usr/lib/python3.11/site-packages/tensorflow/python/tf2.py", line 21, in <module>
from tensorflow.python.platform import _pywrap_tf2
ImportError: Python version mismatch: module was compiled for Python 3.10, but the interpreter version is incompatible: 3.11.6 (main, Nov 14 2023, 09:36:21) [GCC 13.2.1 20230801].
Additional info:
Python version: Python 3.11.6
- package version(s): python-tensorflow: 2.15.0-1