Home > Common Problem > body text

How to install Jupyter Notebook in Windows 11 or 10 using CMD?

WBOY
Release: 2023-09-16 21:29:05
forward
1360 people have browsed it

Installing Jupyter on Windows 11 or 10 via Command Prompt

The given steps are applicable for Win 11 and 10 operating systems, here we will use Winget package manager.

1. Open CMD or Powershell

As in this guide, we are only using the command to install all the required packages to meet the requirements required by Jupyter; therefore, right click on the Windows Start button to select PowerShell (Admin) or Terminal (Admin).

Note: Please make sure to only open CMD or Powershell with administrator privileges.

如何使用CMD在Windows 11或10中安装Jupyter Notebook?

2. Install the latest version of python

Well, we can manually download the executable file of python from its official website. However, we don't need to do this when we have Winget package manager for Windows.

Winget appears by default on all latest versions of Win 10 and 11. However, to confirm, in your terminal or Powershell, just type:

winget
Copy after login

and you will see the options available for your package manager tool. Now, to search for the latest version of Python, type the given command:

You will also see all the available versions as well as the ones using:

winget search python.python
Copy after login
如何使用CMD在Windows 11或10中安装Jupyter Notebook?

To get the extremely latest version of Python 3, for example in our case it is 3.11, we have to mention:

Syntax:

winget install python.python.version-number
Copy after login

Usage:

winget install python.python.3.11
Copy after login

Close whatever CMD or PowerShell you are using and reopen it again with administrator privileges. This ensures that python is added to our path correctly. It is necessary to use its package manager "PIP".

3. Check the Picture-in-Picture version

Confirm that the latest version of Python has been added to the path of our system. Let's check the version of PIP installed. Here are the commands to use:

pip -V
Copy after login
如何使用CMD在Windows 11或10中安装Jupyter Notebook?

3. Install Jupyter notebook using PIP

Now, use ## on your command prompt or PowerShell #PIP, Python's package manager installs Jupyter Notebook using a single command.

pip install notebook
Copy after login

Depending on your internet connection, this command will take some time to download all the necessary packages we need to set up Jupyter on Windows. Once completed, move on to the next step.

如何使用CMD在Windows 11或10中安装Jupyter Notebook?
4. Check if Jupyter notebook is running on Windows

It may be that Jupyter may not work properly after completing the installation, we must confirm this. In the command prompt, type the given command. It will start the web server and all the required packages we need to run and access Notebook's web interface on Windows.

jupyter notebook
Copy after login

The above command will automatically open your browser and redirect to the interface showing the system directory.

如何使用CMD在Windows 11或10中安装Jupyter Notebook?
5. Create a desktop shortcut

Okay, we have this web-based Python IDE running on a Windows system. However, to open it we need to open CMD and run the command given in the previous step. To make things instant, let's create a Jupyter desktop shortcut so that we can run it with a mouse click.

Step 1: Right-click on the Windows desktop and select "New" and then select the "Shortcut" option.

如何使用CMD在Windows 11或10中安装Jupyter Notebook?

Step 2: The shortcut window will open to create a new window. The path given below is pasted there. This will open Powershell and execute the command in it. jupyter notebook

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe jupyter notebook
Copy after login
如何使用CMD在Windows 11或10中安装Jupyter Notebook?

步骤3:为您的快捷方式命名,在这里我们分配 – Jupyter Notebook。你可以给任何你想要的东西。之后点击 结束通话 按钮。

如何使用CMD在Windows 11或10中安装Jupyter Notebook?

第 4 步:为了轻松识别您的快捷方式,让我们下载 Jupyter 图标。访问 icons.com 并单击ICO选项卡,然后下载图标。将图标保存在某个位置,这样您就不会意外删除它。

如何使用CMD在Windows 11或10中安装Jupyter Notebook?

第 5 步:右键单击创建的快捷方式,然后选择“属性”选项。

如何使用CMD在Windows 11或10中安装Jupyter Notebook?

第 6 步:单击更改图标按钮,然后单击浏览以选择已下载图标。之后,按 Ok 按钮保存更改。

如何使用CMD在Windows 11或10中安装Jupyter Notebook?

附加信息:默认情况下,Jupyter 将显示创建快捷方式的目录的文件。要改变并告诉它,请打开并列出 Python 项目的文件。再次右键单击快捷方式,选择属性,然后在“启动”列中输入 Python 项目目录的路径。

如何使用CMD在Windows 11或10中安装Jupyter Notebook?

6. 升级 Jupyter 笔记本

将来,如果要使用命令行在Windows上安装Jupyter的任何可用升级,请再次使用PIP,下面是示例:

pip install -U jupyter
Copy after login

The above is the detailed content of How to install Jupyter Notebook in Windows 11 or 10 using CMD?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template