Pip install tensorflow error

from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
ModuleNotFoundError: No module named ‘tensorflow.python’

How can i this solve?

@Ozge_Sahin,

Welcome to the Tensorflow Forum!

You can use pip to install tensorFlow as shown below

pip install tensorflow

Thank you!

Hi @chunduriv, I tried installing tensorflow using “pip install tensorflow”
but I received the following error on my cmd prompt. Wondering
if you have any input on this?

"ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘C:\Users\sanja\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\tensorflow\include\external\com_github_grpc_grpc\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h’

HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at Maximum Path Length Limitation - Win32 apps | Microsoft Learn"

I’m new to python and tensorflow so any help is greatly appreciated!

Sanjay

1 Like

@Sanjay_P,

Welcome to the Tensorflow Forum!

Windows doesn’t accept long paths (i.e.longer than 260 character limit).You can enable this setting by following the steps mentioned in this link.

Thank you!

Thank you @chunduriv for the help on this!