Python Installation
Python Installation
Environment
Introduction
Python and JupyterLab are powerful tools used for data analysis, scientific computing, and
machine learning. This guide provides step-by-step instructions for installing Python and
JupyterLab on Windows, Linux, and Mac.
Table of Contents
- Installation in linux
- Installation in windows
- installation in mac
Step-by-Step Guide
Linux:
Install Python:
sudo apt update
python3 --version
Install JupyterLab
Install JupyterLab approach with a virtual environment:
sudo apt update
Launch JupyterLab:
jupyter lab
A new tab will open in your default web browser with JupyterLab.
Windows:
Install python:
py -m venv .venv
.venv\Scripts\activate
where python
.venv\Scripts\python
exit()
py -m venv summerofai
py -m pip --version
Mac:
Install python:
Install Homebrew by running the following command:
/bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install JupyterLab:
pip3 install jupyterlab
Launch JupyterLab:
jupyter lab
A new tab will open in your default web browser with JupyterLab.
Troubleshooting
• Command not found: Ensure Python and pip are installed and added to your
system PATH.
• Permission issues: Try running commands with sudo on Linux and Mac if you
encounter permission errors.
• Browser doesn't open: Copy the URL provided in the terminal and paste it into
your web browser manually.