Traceback (most recent call last): File "c:\Users\Kikin\OneDrive\Bureau\Trading\IA de…
- User
Traceback (most recent call last): File "c:\Users\Kikin\OneDrive\Bureau\Trading\IA de Trading\structure_IA.py", line 4, in import tensorflow as tf File "C:\Users\Kikin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\tensorflow_init_.py", line 39, in from tensorflow.python.tools import module_util as _module_util ModuleNotFoundError: No module named 'tensorflow.python'
- Assistant
- User
C:\Users\Kikin>pip uninstall tensorflow WARNING: Skipping tensorflow as it is not installed.
- Assistant
Since it's indicating that TensorFlow is not installed, we need to first install it to resolve the issue. You can install TensorFlow using
pip. Before installing TensorFlow, you should ensure that you have a compatible version of Python, since TensorFlow may not support Python 3.11 as of my last update. A widely supported Python version for TensorFlow would be Python 3.7, 3.8, or 3.9.Here's how you can attempt to resolve the issue:
-
Install a Compatible Python Version: If necessary, install Python 3.7, 3.8, or 3.9, as TensorFlow has well-documented support for these Python versions.
-