 No module named 'tensorflow.compat' in 2.10 version  tensoflow
@ziyuuuuuu I was able to run the code provided successfully using TF version 2.15 on colab, could you please have a look at this [gist](https://colab.research.google.com/gist/sushreebarsa/6d84a0c3e9fbce0f04266ff99bacfc38/62580.ipynb)?
Thank you! > @ziyuuuuuu I was able to run the code provided successfully using TF version 2.15 on colab, could you please have a look at this [gist](https://colab.research.google.com/gist/sushreebarsa/6d84a0c3e9fbce0f04266ff99bacfc38/62580.ipynb)? Thank you!

Hi, i have checked it and rerun the code at anaconda visual studio. The porblem is still there, it might be an enviroment issue, do you know how should i do here, have you tried with Anaconda?
![image](https://github.com/tensorflow/tensorflow/assets/124778258/531d2f0e-5f55-4640-8ea3-8cb95ac640e6)
 @ziyuuuuuu Thank you for your reply here.
Could you try to create a dedicated virtual environment for your project. This isolates the specific versions of libraries used and avoids conflicts with other installed libraries.
Please upgrade to the latest TF version and let us know the outcome?

Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. 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/62580">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/62580">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

2.10

### Custom code

Yes

### OS platform and distribution

anaconda

### Mobile device

_No response_

### Python version

3.7

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

Hi everyone 
I was planned to train a ANN model with the help of Tensoflow and Skilearn. Since i have already made it before so everything went well, but then since it is required to us Skikeras so i installed this liberary then my tensorflow started to have the error:
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[~\AppData\Local\Temp\ipykernel_24108\3624083267.py](https://untitled+.vscode-resource.vscode-cdn.net/~/AppData/Local/Temp/ipykernel_24108/3624083267.py) in <module>
      1 np.random.seed(42)
----> 2 from keras.models import Sequential
      3 from keras.layers import Dense
      4 from tensorflow.keras.optimizers import Adam, RMSprop
      5 from scikeras.wrappers import KerasRegressor

[c:\Users\liziyu\Anaconda3\envs\tf\lib\site-packages\keras\__init__.py](file:///C:/Users/liziyu/Anaconda3/envs/tf/lib/site-packages/keras/__init__.py) in <module>
     19 """
     20 from keras import distribute
---> 21 from keras import models
     22 from keras.engine.input_layer import Input
     23 from keras.engine.sequential import Sequential

[c:\Users\liziyu\Anaconda3\envs\tf\lib\site-packages\keras\models\__init__.py](file:///C:/Users/liziyu/Anaconda3/envs/tf/lib/site-packages/keras/models/__init__.py) in <module>
     16 
     17 
---> 18 from keras.engine.functional import Functional
     19 from keras.engine.sequential import Sequential
     20 from keras.engine.training import Model

[c:\Users\liziyu\Anaconda3\envs\tf\lib\site-packages\keras\engine\functional.py](file:///C:/Users/liziyu/Anaconda3/envs/tf/lib/site-packages/keras/engine/functional.py) in <module>
     22 import warnings
...
---> 24 import tensorflow.compat.v2 as tf
     25 
     26 from keras import backend

ModuleNotFoundError: No module named 'tensorflow.compat'
I have already tried to uninstall and reinstall the tensorflow several times but this bug report is still there.. here is a screen shot from conda prompt, and i also tried the way that mentioned at another report but it is not working for me, do y'all have any idea what happened here and what should i do?
![image](https://github.com/tensorflow/tensorflow/assets/124778258/4776b11d-50d9-4153-b602-7897ca44ee8c)


### Standalone code to reproduce the issue

```shell
np.random.seed(42)
from keras.models import Sequential
from keras.layers import Dense
from tensorflow.keras.optimizers import Adam, RMSprop
from scikeras.wrappers import KerasRegressor
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import KFold
```


### Relevant log output

_No response_