This procedure will allow you to install, setup & configure all the software needed to run a basic Machine Learning environment on your Windows PC utilizing:
Python
Virtualenv
Tensorflow
Keras
Matplotlib
Jupyter
Note
For widest compatibily, this environment uses only CPU resources, No GPU required!
In this specific example, I'll be opening and running the Jupyter Notebook from the Basic Image Classification with Tensorflow Course.
If you've completed this course, you can get your completed Jupyter Notebook from Basic Image Classification with Tensorflow Resources.
You should download the TensorFlow2 notebook: Notebook_Complete_TF2 (Just click on it and save it to a directory on your drive).
Important
Make sure you save the file with the above filename exactly, it will add the .zip extension
Extract the contents of this zip arcive in the directory on your local disk where you will keep everything related to this notebook.
For the purposes of this example, I created a directory called Local ML on my disk.
We must first download and install this specific Python version: python-3.9.13-amd64
Scroll to the bottom of the page and download the appropriate installer for Windows x64:
Windows installer (64-bit) Windows Recommended e7062b85c3624af82079794729618eca 29235432 SIG
Important
This may work with another v3.9.x or v3.10.x as well; however, it will not work with v3.11.x and later
I've included a simple Windows Command file to create a new virtual environment tf-env and install all the basic ML packages.
It's easist to perform the remaining steps in a Command Window by pressing [Windows]+R then [ENTER] to run CMD
Use CD to make your default directory the one you created above, mine is LocalML
C:\>cd LocalML
Now run the included install_packages.bat command file; we only need to do this one time:
C:\LocalML>install_packages.bat
Tip
You can rerun this command file at anytime to reset and rebuild your virtual tf-env
The second inluded file start_notebook.bat we run anytime we want to open and use our Jupyter Notebooks:
C:\LocalML>start_notebook.bat
This will open the Jupyter environment in your default browser and display the contents of your default directory.
In our example, we can now open and run the TensorFlow Beginner - Basic Image Classification.ipynb notebook.