"How to Fix 'jupyter: command not found' Error After Installing with pip "
Last Updated :
12 Jun, 2024
Encountering the "Jupyter command not found" error after installing Jupyter with pip can be frustrating. This common issue typically arises due to problems with the installation path or virtual environments. In this guide, we'll explore the root causes and provide step-by-step solutions to fix this error. Ensuring Jupyter Notebook is correctly installed and accessible will enhance your data science and development workflow.
Problem
If you've installed Jupyter using the Python pip command, use the appropriate commands based on your operating system:
On Windows :
py -m pip install jupyter
On Linux/Mac:
python3 -m pip install jupyter
The error is shown like below
"jupyter: command not found

Reason: 'jupyter: command not found'
There are some issues due to 'jupyter' command not found error display on display screen.
- Python Not Added to Path: The 'jupyter' command may not be recognized if Python is not added to the system's path. Ensuring proper configuration of Python in the system's path resolves this issue.
- Outdated pip Version: Compatibility issues during Jupyter installation can arise from using an outdated version of pip. Keeping pip up to date is essential to avoid such problems.
- Installation in a Python Virtual Environment: Installing Jupyter within a Python virtual environment might make the 'jupyter' command inaccessible globally. Activating the virtual environment or installing Jupyter system-wide addresses this issue.
- Incomplete or Improper Jupyter Installation: An incomplete or incorrect installation of Jupyter can result in the 'command not found' error. Verifying the installation process and reinstalling Jupyter if necessary resolves this problem.
- Insufficient User Privileges: Running Jupyter without the necessary user privileges can lead to the 'command not found' error. Ensuring that the user has the required permissions mitigates this issues.
How to fix "jupyter: command not found" Error ?
This section outlines the necessary steps and provides explanations to resolve the error. Follow each step carefully:
Step 1: Ensure Proper Installation and Path for Python
Although it's likely not the issue since you installed using Python pip, confirm that Python is correctly installed with stable Python version and added to the system path. Execute the following commands
On Windows:
py --version
On Linux/Mac:
python3 --version
This command should display the installed Python version. If you get a "command not found" message, add Python to the system path. Afterward, repeat step 1. Now, attempt to launch Jupyter Lab with the command:
jupyter lab
If Jupyter Lab opens in the browser, the issue is resolved. If not, proceed to step 2.
If you used a Python virtual environment (e.g., venv) during installation, proceed with this step. If not, skip to step 3.
Activate the Python virtual environment you used during installation. The process may vary depending on the virtual environment type, but you should be familiar with it if you've set it up.
Step 3: Verify Jupyter Installation
Check if Jupyter is installed using the following commands:
On Windows
py -m pip show jupyter
On Linux/Mac
python3 -m pip show jupyter
If it is installed, it will show basic information related to jupyter installation and you can skip to step 5.
If not installed, it will show some information like the below screenshot and in this case, proceed to step 4.
python3 -m pip show jupyter

Step 4: Install Jupyter
Ensure your pip is up-to-date by executing the following command:
On Windows:
py -m pip install --upgrade pip
On Linux/Mac:
python3 -m pip install --upgrade pip
Refer to the provided screenshot; if it confirms that pip is already in the latest version, proceed to the next step.

Install Jupyter using the following commands:
On Windows:
py -m pip install --upgrade jupyter
On Linux/Mac:
python3 -m pip install --upgrade jupyter
After the installation, proceed to Step 5.
Step 5: Run Jupyter. Execute the following command:
If Jupyter Lab opens in the browser, the issue is resolved. If not, try the alternative command:
py -m jupyter

You can now utilize various Jupyter subcommands by employing the general "jupyter" command. For instance, to initiate Jupyter Lab in the browser, execute the following command from any open folder in the terminal/console:
On Windows:
py -m jupyter lab
On Linux/Mac:
python3 -m jupyter lab
The result/output will be displayed in the browser. The issue is resolved, as indicated by the presence of this image.

Conclusion
Fixing the "Jupyter command not found" error after pip installation is straightforward with the right approach. By checking your PATH variable, ensuring proper installation, and correctly configuring virtual environments, you can resolve this issue quickly. This guide offers practical solutions to get your Jupyter Notebook up and running, improving your productivity and workflow. Follow these steps to ensure a smooth experience with Jupyter on your system.
Similar Reads
How to fix Bash: Command Not Found Error in Linux
The "command not found" error is a frequently encountered issue in Linux systems. This error occurs when the system is unable to locate the file specified in the path variable. This error typically occurs when the system cannot locate the command in the directories specified by the path variable. Wh
6 min read
How to Fix "pip command not found" in Linux
Python has become an essential tool for developers, data scientists, and system administrators due to its versatility and extensive libraries. The 'pip' tool, which is the standard package manager for Python, plays a crucial role in managing Python packages, libraries, and dependencies. However, enc
9 min read
How To Fix "Bash: Docker: Command Not Found" In Linux
Docker has become an essential tool for developers and system administrators to manage and deploy applications efficiently. However, encountering the error message "Bash: Docker: Command Not Found" can be frustrating, especially when you're trying to work with Docker containers. Here, we'll explore
4 min read
How to Resolve Python Command Not Found Error in Linux
Python is a powerful programming language commonly used for various tasks, ranging from scripting to web development and data analysis. However, when working with Python on a Linux system, you may encounter the frustrating "Python command not found" error. This error occurs when the system cannot lo
4 min read
How To Fix: Sudo npm: Command not Found on Linux
"npm: Command not Found" is one of the most basic errors we face while getting started with Javascript. We may get this error while installing the node package manager. Node and npm packages are not related to nodejs and therefore not included in the nodejs package. NPM stands for Node Package Manag
2 min read
How to fix "error 403 while installing package with Python PIP"?
When working with Python, pip is the go-to tool for managing packages. However, encountering a "403 Forbidden" error can be frustrating. This error typically indicates that the server refuses to fulfill the request, often due to permissions or access restrictions. In this article, we'll delve into t
4 min read
How to Install Python Dash with Conda ?
Dash is a very useful Python tool. It is used to create a Python framework. Because of its popularity among developers, Dash is frequently used to create interactive dashboards in online applications. Dash is a Python library that is similar to Flask and Plotly. An Anaconda is referred to as a Conda
2 min read
How to setup Conda environment with Jupyter Notebook ?
Anaconda is open-source software that contains Jupyter, spyder, etc that are used for large data processing, data analytics, heavy scientific computing. Anaconda works for R and python programming language. Spyder(sub-application of Anaconda) is used for python. Opencv for python will work in spyder
2 min read
How to Write and Run Code in Jupyter Notebook
Jupyter Notebook is an open-source web application. It allows to generate and share documents that contain live code, equations, visualized data, and many more features. Nowadays it has become the first choice of many of the data scientists due to it's immense data visualization and analysis capabil
7 min read
How to Fix The Module Not Found Error?
In this article, we are going to cover topics related to ' Module Not Found Error' and what the error means. the reason for the occurrence of this error and how can we handle this error. What is "ModuleNotFoundError"? A "ModuleNotFoundError" is a common error message in programming, particularly in
5 min read