Help error when installing tensorflow

Hello, im following the course of tensorflow to create my first ai.
I installed tensorflow in pycharm without error but when i try to make tf.version (as written in the course), i get this error and i dont know how to solve it.
Traceback (most recent call last):
File “C:\Users\joric\OneDrive - EPITA\Projets\My AI\”, line 2, in
import tensorflow as tf
File “C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\”, line 51, in
from .api.v2 import compat
File "C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat_init
.py", line 37, in
from . import v1
File “C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat\”, line 30, in
from . import compat
File “C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat\v1\”, line 38, in
from . import v2
File “C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat\v1\compat\”, line 28, in
from tensorflow.api.v2.compat.v2 import internal
File "C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat\v2_init
.py", line 33, in
from . import compat
File “C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat\v2\”, line 38, in
from . import v2
File “C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat\v2\compat\”, line 69, in
from tensorflow._api.v2.compat.v2 import version
ImportError: cannot import name ‘version’ from partially initialized module 'tensorflow.api.v2.compat.v2’ (most likely due to a circular import) (C:\Users\joric\OneDrive - EPITA\Projets\My AI\venv\lib\site-packages\tensorflow_api\v2\compat\

If anyone could help me

Hello @Anosis, please use tf.__version__ or tf.version.VERSION instead of tf.version to know the version of tensorflow and let us know if the issue persists. Thank you!