Choose Your Setup
| Option | Best For | Setup Time |
|---|---|---|
| Google Colab | Beginners, free GPU, nothing to install | 1 minute |
| Local with pip | Working offline, full control | 10 minutes |
| Local with GPU | Faster training of large models | 30+ minutes |
Option 1: Google Colab (Easiest)
- Open Google Colab in your browser and sign in with a Google account.
- Click New notebook.
- To enable a free GPU: Runtime > Change runtime type > GPU.
- TensorFlow and Keras are already installed. Type
import kerasin a cell and run it.
Option 2: Install on Your Computer
Use a recent 64-bit version of Python (check the TensorFlow website for the currently supported versions). Always create a virtual environment so that packages do not conflict with other projects.
Step 3: Test the Installation
tf.Tensor([4. 6.], shape=(2,), dtype=float32)
Optional: GPU Support
A GPU can make training many times faster. It requires an NVIDIA graphics card and a driver installed on your computer. On Linux you can install the CUDA libraries together with TensorFlow using pip:
If the list is empty, TensorFlow is using the CPU. That is completely fine for the small examples in this course.
Run Jupyter Notebook
Create a new Python notebook. Each cell can be run separately with Shift + Enter, which is great for learning step by step.
Common Problems
| Problem | Solution |
|---|---|
No matching distribution found | Your Python version may not be supported. Use a supported version in a new virtual environment |
ModuleNotFoundError: No module named 'keras' | Activate the virtual environment and run pip install keras |
| Many warnings about CUDA or oneDNN | These are information messages. You can ignore them when training on CPU |
| Slow install | Upgrade pip and check your internet connection |
Conclusion
With Colab you can start in a minute. A local setup with a virtual environment is better for bigger projects. Either way, test with the small program above.

