Andrew ng machine learning course( C2W1- advanced learning)

Hello everyone.
I’ve been trying so hard to install tensorflow using pip in windows command prompt , I even switched the default python version in cmd from python 3.11 to 3.10 and still I get so much errors and can’t install it.
Can sb pleassseee help me and tell me what shall I do
I already searched a lot for that but it won’t work.
I get these errors

I would suggest you try to install packaged in a python virtual environment:

https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/

maybe that helps with your installations!

2 Likes

I installed it based on the instructions in the link and it installed successfully but when I open my project still it doesn’t recognize tensorflow

You might need to change your python interpreter to the environment you installed the tensorflow library if you’re using VS IDE press Ctrl(CMD) + Shift + P and select the proper python interpreter

I’d also be cautious if you have more than one version of Python installed. Sometimes the pip you run from the command line is linked to the version of Python you might not actually be using, and it gets confusing.

1 Like