Coding

pip install jupyter notebook: Install and Launch It Step by Step

To run pip install jupyter notebook correctly, install the package named notebook with pip install notebook, then start it with jupyter notebook. Do it inside a virtual environment so it does not clash with other Python projects.

The full sequence, from an empty folder, looks like this on macOS and Linux:

python -m venv .venv
source .venv/bin/activate
python -m pip install notebook
jupyter notebook

And in Windows PowerShell:

python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install notebook
jupyter notebook

The server starts and your browser opens the notebook dashboard. The rest of this article explains each step and what to do when one of them fails.

What to type: pip install notebook, not pip install jupyter notebook

People often search for pip install jupyter notebook with a space. Typed literally, pip reads that as two package names, jupyter and notebook, and tries to install both. You only need the second one. Project Jupyter's own install page gives the short form:

pip install notebook

If you would rather use the newer JupyterLab interface, the same page gives pip install jupyterlab and launches it with jupyter lab.

Step 1: Check that Python and pip work

Run this to see which Python you have:

python --version

PyPI lists Python 3.10 or later for Notebook 7.6.5, the latest release as of November 2026. On Windows, py --version works if python is not on your PATH. On some Linux and macOS systems the command is python3.

Call pip through Python rather than on its own. python -m pip guarantees that pip belongs to the same interpreter you just checked, and it is the form the pip documentation uses in its own upgrade instructions:

python -m pip install --upgrade pip

On Windows, the pip documentation writes this as py -m pip install --upgrade pip. If pip is missing entirely, python -m ensurepip --upgrade installs it.

Step 2: Create and activate a virtual environment

A virtual environment gives the project its own set of packages. Jupyter pulls in a lot of dependencies, so keeping them out of your system Python is worth the extra command. Create one named .venv in the current folder:

python -m venv .venv

Then activate it. The Python documentation lists these commands:

PlatformShellActivate command
macOS, Linuxbash, zshsource .venv/bin/activate
Windowscmd.exe.venv\Scripts\activate.bat
WindowsPowerShell.venv\Scripts\Activate.ps1

Once active, your prompt usually gets a (.venv) prefix. Type deactivate to leave the environment later.

If PowerShell refuses to run Activate.ps1, the Python documentation says you may need to allow local scripts first:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

That changes a PowerShell setting for your user account, so only run it if you are comfortable with it. The alternative is to use Command Prompt and activate.bat.

Step 3: Install Jupyter Notebook with pip

With the environment active:

python -m pip install notebook

pip downloads Notebook and its dependencies. This takes longer than a typical single-package install because of the number of dependencies. When it finishes, pip prints a line starting with Successfully installed followed by the package names and versions.

To install a particular release instead of the latest, pin the version. The article on installing a specific version with pip covers the syntax. If you keep your dependencies in a file, see pip install requirements.txt, and put notebook on its own line.

Step 4: Launch Jupyter Notebook

jupyter notebook

This starts a local server and opens the dashboard in your default browser. The Jupyter Notebook documentation says the web application is at http://127.0.0.1:8888 by default, and that the first server starts on port 8888, with later servers searching for ports near it. Check the terminal output for the port a second server actually got.

To choose the port yourself, use the --port option:

jupyter notebook --port 9000

To open a specific notebook file directly, skipping the dashboard:

jupyter notebook my_notebook.ipynb

The server runs in the terminal where you started it, so leave that window open while you work. To stop it, press Ctrl+C in that terminal. Closing the browser tab alone does not end the server process.

Fix: 'jupyter' is not recognized as a command

The exact wording depends on your shell. Command Prompt says 'jupyter' is not recognized as an internal or external command. PowerShell says jupyter : The term 'jupyter' is not recognized as the name of a cmdlet, function, script file, or operable program. bash and zsh say jupyter: command not found.

The cause is nearly always one of two things:

  • The virtual environment is not active. The jupyter command was installed into .venv, and your shell only finds it while the environment is activated. Run the activate command from Step 2 again. This is the usual cause after opening a new terminal window.
  • pip installed into a different Python. If you ran a bare pip install and pip belongs to another interpreter than python, the package went somewhere else. Use python -m pip install notebook so both come from the same Python.

To confirm which environment holds the package, run python -m pip show notebook. If it prints "Package(s) not found", the install went into a different Python than the one you are using.

Fix: pip says externally-managed-environment

On recent Debian, Ubuntu and Homebrew Python installs, installing into the system Python can fail with error: externally-managed-environment. Creating a virtual environment as in Step 2 avoids it. The details are in Fix pip "error: externally-managed-environment".

Fix: the browser did not open

Open http://127.0.0.1:8888 yourself, using the port from the terminal output if it differs. On a remote machine or in a container there is no browser on the machine running the server. For remote servers, PyPI points to the Jupyter Server documentation for the configuration you need, so follow that rather than exposing the port directly to the internet.

Fix: port 8888 is already in use

If something else holds the port, start Notebook on another one with --port as shown above, or find the process holding the port and stop it.

Classic Notebook versus Notebook 7

Project Jupyter's install page calls the notebook package "the classic notebook", and the PyPI page currently lists Notebook 7.6.5. Release numbers and interface details change between major versions, so if a tutorial's screenshots do not match what you see, check which version it was written for. You can see your installed version with:

python -m pip show notebook

The Version: line in the output is the release you have.

Frequently asked questions

Is the package called jupyter or notebook?
The package that provides Jupyter Notebook is called notebook, so the command is pip install notebook. Project Jupyter's install page lists it that way. After installing, you start it with the jupyter notebook command.
Should I install JupyterLab instead of Jupyter Notebook?
Both are maintained by Project Jupyter and install the same way. JupyterLab installs with pip install jupyterlab and starts with jupyter lab. Pick the notebook package if you want the notebook interface, and JupyterLab if you want its interface. You can install both in the same environment.
What Python version does Jupyter Notebook need?
PyPI lists Python 3.10 or later for Notebook 7.6.5 (released November 6, 2026). Check the 'Requires' line on the notebook page on PyPI, because the minimum can change between releases.
How do I stop the Jupyter Notebook server?
Press Ctrl+C in the terminal where jupyter notebook is running. Closing the browser tab alone does not end the server process. Notebooks that still have an active kernel also show a Shutdown button on the dashboard.

Sources