Installing Python On Linux
To install Python on Linux, follow these steps:
- Check if Python is already installed: Open the terminal and run the following command:
If Python is not installed, install it using the package manager for your Linux distribution. For example:
sudo apt-get install python3
This will install Python on your system. You can verify the installation by running the command python3 –version again.
- Install Jupyter Notebook: To install Jupyter Notebook, you need to have pip installed. If you don’t have it, install it using the following command:
sudo apt-get install python3-pip
Then, use pip to install Jupyter Notebook by running the following command:
pip3 install jupyter
This will install Jupyter Notebook and its dependencies on your system.
- Start Jupyter Notebook: To start Jupyter Notebook, run the following command in the terminal:
This will launch Jupyter Notebook in your default web browser and you can start creating and running notebooks.