1. Install Anaconda
1. Download Anaconda3
Download the Linux version of anaconda at Tsinghua Mirror
Official website of Tsinghua Mirror Anaconda download
I chose Anaconda3-2023.03-Linux-x86_64.sh
2. Create a new folder named anaconda under the user folder and place the file you just downloaded in this folder
3. Open in terminal
cd anaconda
4. Enter the following command line
bash Anaconda3-2023.03-Linux-x86_64.sh
5 Then either press Enter or Yes, and finally the installation is successful.
7 Configure conda environment variables
vim ~/.bashrc
Add in the last line
export PATH="~/anaconda3/bin:$PATH" to save changes.
Then source ~/.bashrc
8 conda --version test
2. Install jupyter
1. Install jupyter
python3 -m pip install jupyter
2. Generate jupyter configuration file
#root user:
jupyter notebook --generate-config --allow-root
#Non-root user
jupyter notebook --generate-config
3. Open ipython and generate the password
ipython
from notebook.auth import passwd
passwd() – enter the password and press Enter to confirm.
After entering the password, a secret key will be generated, which will be used later. The secret key will have sha1.
4 Modify the configuration file
vim /root/.jupyter/jupyter_notebook_config.py
vim /root/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '192.168.*.'
- ipynb file saving address
c.NotebookApp.notebook_dir = u'/ root/jupyder_dir'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:********'
c.NotebookApp.port = 8888
5. Start jupyter
– root user
jupyter notebook --allow-root
– non-root user
jupyter notebook