tf-nightly [2.13.0.dev20230322]: module 'tensorflow' has no attribute 'version'
Hi @YuliyaPylypiv,
Thank you for raising this issue! Could you please let us know the steps followed to install Tensorflow? Hi @synandi, I used pip to install TensorFlow `pip3 install tf-nightly` The issue is resolved with `v1.12.1-91194-g44c02012675 2.13.0-dev20230317` version

```
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
2023-03-17 14:50:51.497925: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
v1.12.1-91194-g44c02012675 2.13.0-dev20230317
``` Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60024">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60024">No</a>
 Hi @synandi,

I'm seeing the same issue again with `tf-nightly 2.13.0.dev20230322` on macos x86 machine

To reproduce:
```
pip install tf-nightly==2.13.0.dev20230322
python -c "import tensorflow as tf; print(tf.version.VERSION)"
```

Result: 
```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'version'
``` Hi @YuliyaPylypiv, 
It is recommended to use the stable version of Tensorflow instead of tf-nightly as it is unstable. It will likely be resolved in the stable release. Thank you! Do this below 
!python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
!python -c "import tensorflow as tf; tf.random.set_seed(1)" 

output below
2023-03-31 23:13:38.444282: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
v1.12.1-91939-g13de22a3b30 2.13.0-dev20230331
2023-03-31 23:13:42.397786: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT I'm aware that stable TensorFlow works! Wanted to make sure the issue is resolved with the tf-nightly. Thank you all! Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60024">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/60024">No</a>

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

source

### Tensorflow Version

2.13.0.dev20230316

### Custom Code

No

### OS Platform and Distribution

macos 13.0.1 x86

### Mobile device

_No response_

### Python version

3.9.16

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'version'

python -c "import tensorflow as tf; tf.random.set_seed(1)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'random'
```


### Standalone code to reproduce the issue

```shell
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
python -c "import tensorflow as tf; tf.random.set_seed(1)"
```


### Relevant log output

```shell
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'version'
```
</details>