posted on 2023-06-06 11:01 read(667) comment(0) like(27) collect(0)
Jupyter Notebook is a web-based interactive computing environment that supports multiple programming languages, including Python, R, Julia, and more. Its main function is to combine code, text, mathematical equations, visualizations, and other related elements to create a dynamic document for data analysis, machine learning, scientific computing, and data visualization . Jupyter Notebook provides an interactive interface that enables users to build and execute code incrementally and visually, while supporting Markdown-formatted text and LaTeX mathematical notation.
Before installing Jupyter Notebook, you can choose to install Anaconda first . Anaconda is a distribution version that can easily obtain packages and manage packages, and can manage the environment in a unified manner. Anaconda includes more than 180 scientific packages including conda and Python and their dependencies, including Jupyter Notebook.
Of course, you can also install Jupyter Notebook through the command line pip ( you must ensure that python is installed ). The following two methods will be introduced for you.
1. Download the Anaconda installation package for Windows from the Anaconda official website .
2. Double-click the installation package to install, select "Add Anaconda to my PATH environment variable", and then click "Install" .
click next
click agree
Click Just Me
Set the installation directory(It is recommended to put it on a disk other than the c drive, it is best to create a new folder)
Check the first three, and the second check means adding environment variables, which will be troublesome to set later
clickinstall, all the way to next and wait for the installation.
uncheck both, click finish to complete it
Now open the command line and enter
conda --version
If the version information is displayed, the installation is successful.
3. Configure the domestic mirror source
Continue to enter the following command in cmd to configure as Tsinghua source:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
4. After the installation is complete, find the executable file of Navigator in the Anaconda Navigator installation directory , usually in **C:\Users\wtyyy\AppData\Roaming\Microsoft\Windows\Start Menu\Programs** file path, double-click Just open it.
Or enter the **"anaconda-navigator"** command in the Anaconda Prompt (same path as the navigator) command line window, and press Enter to start Anaconda Navigator.
In the Windows operating system, you can find the shortcut of the Anaconda Navigator application in the start menu, and click to open it.
After opening, you can see that such an interface is successful. At this time, click the launch button
under Jupyter Notebook .
First, you need to make sure that Python is installed.
1. Open the command prompt: press the Win + R keys, enter "cmd", and press the Enter key to open the command prompt window.
2. Install Jupyter Notebook: Enter the following command in the command prompt to install Jupyter Notebook using pip.
pip install jupyter notebook
3. Start Jupyter Notebook: Enter the following command in the command prompt to start Jupyter Notebook.
jupyter notebook
4. Next, Jupyter Notebook will open in the default browser. If it does not open automatically, you can enter http://localhost:8888/tree in the browser to access.
When the above page appears, the installation is successful.
During the process of using pip to install Jupyter Notebook, you may encounter the following problems:
1. Failed to install dependent libraries : Jupyter Notebook needs to depend on other Python libraries. If any one of the dependent libraries fails to install, the installation of Jupyter Notebook will fail. At this point, you can try to use the –user parameter to reinstall the dependent library, or install it again after upgrading the pip version.
The specific method of upgrading pip is as follows. First, open the command line (win+R+cmd) and enter the command:
python -m pip install --upgrade pip
If you installed the python3 version, enter
python3 -m pip install --upgrade pip
Can be upgraded through
pip --version
To verify whether it is updated to the latest version of
python3, enter
pip3 --version
2. Slow installation speed : The process of pip installing Jupyter Notebook may require downloading and installing a large number of files. If the network speed is slow, the installation process may be very slow. At this point, you can consider changing the download source or using a proxy, or downloading the installation package directly for installation.
Tsinghua download source can be used
pip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
3. Installation version problem : pip may install Jupyter Notebook that is not compatible with the current system or other library versions, resulting in errors or malfunctions during runtime. At this point, you can view the official Jupyter Notebook documentation to determine the version of Jupyter Notebook that is compatible with the current system and dependent library versions, and specify the version number for installation.
4. Permission issues : In some cases, the installation process requires administrator privileges to proceed. At this point, you can open a command line window with administrator privileges for installation.
If you encounter other problems, you can try to view the error message of pip, or search for solutions to related problems in the search engine.
Author:Abstract
link:http://www.pythonblackhole.com/blog/article/80046/6d9512d4a75b674d2c68/
source:python black hole net
Please indicate the source for any form of reprinting. If any infringement is discovered, it will be held legally responsible.
name:
Comment content: (supports up to 255 characters)
Copyright © 2018-2021 python black hole network All Rights Reserved All rights reserved, and all rights reserved.京ICP备18063182号-7
For complaints and reports, and advertising cooperation, please contact vgs_info@163.com or QQ3083709327
Disclaimer: All articles on the website are uploaded by users and are only for readers' learning and communication use, and commercial use is prohibited. If the article involves pornography, reactionary, infringement and other illegal information, please report it to us and we will delete it immediately after verification!