1
Install Python 3.8+
Download from python.org or use Anaconda distribution for easier package management.
Copy
# Download Anaconda from anaconda.com
# Or install Python directly and use pip
python --version # Check installation
2
Install Essential Libraries
Start with the core libraries needed for neural network development.
Copy
pip install tensorflow pandas numpy matplotlib scikit-learn jupyter
3
Verify Installation
Test that everything is working correctly with a simple script.
Copy
import tensorflow as tf
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
print("TensorFlow version:", tf.__version__)
print("GPU available:", tf.config.list_physical_devices('GPU'))
1
Create Virtual Environment
Isolate your project dependencies to avoid conflicts.
Copy
# Using conda
conda create -n ml-env python=3.9
conda activate ml-env
# Using venv
python -m venv ml-env
source ml-env/bin/activate # Linux/Mac
# ml-env\Scripts\activate # Windows
2
Install Full ML Stack
Include additional tools for visualization and experimentation.
Copy
pip install tensorflow pytorch torchvision scikit-learn
pip install pandas numpy matplotlib seaborn plotly
pip install jupyter jupyterlab ipywidgets
pip install tensorboard wandb optuna
3
Setup Development Environment
Configure your IDE and tools for optimal productivity.
Copy
# Install VS Code Python extension
# Configure Jupyter kernels
jupyter kernelspec list
# Enable useful Jupyter extensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
1
GPU Setup (NVIDIA)
Configure GPU acceleration for faster training.
Copy
# Install CUDA Toolkit 11.8
# Download from developer.nvidia.com/cuda-toolkit
# Install cuDNN
# Download from developer.nvidia.com/cudnn
# Verify GPU support
nvidia-smi
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
2
Performance Libraries
Install optimized libraries for production workloads.
Copy
# Intel optimizations
pip install intel-tensorflow
# RAPIDS for GPU-accelerated data science
conda install -c rapidsai -c nvidia -c conda-forge rapids=23.10
# JAX for high-performance research
pip install jax[cuda] -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
3
Production Tools
Tools for model deployment and monitoring.
Copy
pip install docker fastapi uvicorn streamlit
pip install mlflow dvc hydra-core
pip install transformers datasets
pip install onnx onnxruntime
1
Google Colab (Free)
Start immediately with no installation required.
Copy
# Go to colab.research.google.com
# Click "New Notebook"
# Enable GPU: Runtime > Change runtime type > GPU
# Check GPU availability
!nvidia-smi
import tensorflow as tf
print("GPU available:", tf.config.list_physical_devices('GPU'))
2
Cloud Platforms
Professional cloud environments for larger projects.
Copy
# AWS SageMaker
# - Jupyter notebooks with pre-configured ML environments
# - Managed training and deployment
# Google Cloud AI Platform
# - Vertex AI for end-to-end ML workflows
# - Pre-configured deep learning VMs
# Azure Machine Learning
# - Managed notebooks and compute instances
3
Benefits of Cloud
Advantages of cloud-based development.
Copy
✓ No local setup required
✓ Access to powerful GPUs/TPUs
✓ Automatic scaling
✓ Collaboration features
✓ Built-in version control
✓ Easy deployment options