Installing TensorFlow and Keras in Python on Windows 10: A Step-by-Step Guide

Posted by


Installing TensorFlow and Keras on Windows 10 can be a bit tricky for beginners, but with the right instructions, you should be able to do it without any issues. In this tutorial, I will guide you through the step-by-step process of installing TensorFlow and Keras in Python on Windows 10.

Step 1: Install Python
The first step is to install Python on your Windows 10 machine. You can download the latest version of Python from the official website at https://www.python.org/downloads/. Make sure to select the box that says "Add Python to PATH" during installation to make it easier to run Python from the command line.

Step 2: Install pip
Pip is a package manager for Python that allows you to easily install and manage Python packages. To install pip, open the command prompt and run the following command:

python -m ensurepip --default-pip

Step 3: Install TensorFlow
To install TensorFlow, you can use pip. Open the command prompt and run the following command:

pip install tensorflow

This will download and install the latest version of TensorFlow on your Windows 10 machine.

Step 4: Install Keras
Keras is a high-level neural networks API that is built on top of TensorFlow. You can install Keras using pip by running the following command:

pip install keras

This will download and install Keras on your Windows 10 machine.

Step 5: Verify installation
To verify that TensorFlow and Keras have been successfully installed, you can run the following commands in the command prompt:

python -c "import tensorflow as tf; print(tf.__version__)"

This will print out the version of TensorFlow that is installed on your machine. Similarly, you can check the version of Keras by running the following command:

python -c "import tensorflow as tf; print(tf.keras.__version__)"

This will print out the version of Keras that is installed on your machine.

Congratulations! You have successfully installed TensorFlow and Keras on your Windows 10 machine. You can now start building and training neural networks using these powerful libraries. If you encounter any issues during the installation process, feel free to ask for help on forums or online communities dedicated to Python and machine learning. Good luck!

0 0 votes
Article Rating

Leave a Reply

20 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@claudiovinci5334
5 days ago

How can i use tensorflow after the installation is successfully completed?

@Vishal-dl8pl
5 days ago

no ouput showing

@ishua987
5 days ago

thank you man ! you saved me

@roseravena4902
5 days ago

This is my problem for about 2 months now. And you solved it in 5 minutes. Soooo impressed. Thank you so much!

@loickdiener4129
5 days ago

Thanks for this video

@rikblauer
5 days ago

Installation in one single attempt. Just brilliant. Greetigns from Colombia, South America!

@ShinyHunterTr74
5 days ago

"WARNING: The scripts import_pb_to_tensorboard.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'C:UsersoguzhanAppDataLocalPackagesPythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0LocalCachelocal-packagesPython310Scripts' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use –no-warn-script-location." is it a big problem?

@sreelakshmi7932
5 days ago

Heyy broo my Python version is 3.12 how Can i install tensorflow and keras plzz reply

@zvkwvn
5 days ago

thank you so much. been having a really hard time to install this

@user-qe6nj1ub8c
5 days ago

stuck in 3:23,when i click enter, it shows differently.
C:Usersuser>cd C:UsersuserAppDataRoamingMicrosoftWindowsStart MenuProgramsPython 3.11

C:UsersuserAppDataRoamingMicrosoftWindowsStart MenuProgramsPython 3.11>

@ChiranjeeviRamakrishna-tu3gg
5 days ago

Thanks Buddy 🙂
this helped me a lot… i was struggling to install tensorflow and keras from past 4 days. But….. Now iam in a relief. thanks buddy 🙂

@varunmalhotra666
5 days ago

I am installing tensorflow but it is not available for windows onky for macos and linux .how I install

@ardaucar9006
5 days ago

May God bless you! I was trying to install TensorFlow for a long time but never succeded. Today, thanks to you I have managed to do it thank you again

@JoeyTeam31
5 days ago

I realize major companies do not want regular citizens to use tensorflow, same for openai, it always bring up ERROR MESSAGES 🤷🏿‍♂️

@JoeyTeam31
5 days ago

Not working

@zypeLLas
5 days ago

Not working. The same as the beginning.

@tradewithus_now
5 days ago

ERROR: tensorflow-2.15.0-cp311-cp311-win_amd64.whl is not a supported wheel on this platform.

please solve this error

@alihussan1521
5 days ago

This is not working on mine …

@lokeshart3340
5 days ago

tensorflow-2.14.0-cp311-cp311-win_amd64.whl is not a supported wheel on this platform.

@sharaijaz
5 days ago

I am getting eorror ERROR: tensorflow-2.14.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

20
0
Would love your thoughts, please comment.x
()
x