python pip install jupyter notebook

If you want to install Jupyter Notebook in a Python environment, you can use the pip command to install it. Here are the steps to install Jupyter Notebook in the command line interface:

  1. Open a command line interface (such as Command Prompt for Windows or Terminal for macOS/Linux).

  2. Run the following command to update the pip tool to the latest version:

    pip install --upgrade pip
    ```
    
    
  3. Run the following command to install Jupyter Notebook:

    pip install notebook
    

    During this process, pip will automatically install the dependencies required by Jupyter Notebook.

  4. After the installation is complete, you can start Jupyter Notebook, run the following command:

    jupyter notebook
    

    Then open http://localhost:8888 in your browser to start using Jupyter Notebook.

Note, if you are using a virtual environment, make sure to install Jupyter Notebook in the virtual environment. If you don't want to install Jupyter Notebook globally, you can use pip install --user notebookthe command to install it in a virtual environment.

Guess you like

Origin blog.csdn.net/a772304419/article/details/131860522