1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
# 都选 yes
python --version
# Python 3.10.9
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create -y -n pydata_la python=3.10
conda activate pydata_la
# conda deactivate
jupyter notebook --generate-config
vim ~/.jupyter/jupyter_notebook_config.py
# c.NotebookApp.ip = '*'
# c.NotebookApp.port = 6666
# c.NotebookApp.open_browser = False
# c.NotebookApp.notebook_dir = '<path_to_your_notebook>'
# c.NotebookApp.allow_root = True
# some packages are not available through conda, so if conda install $package_name fails, try pip install $package_name.
conda install -y pandas jupyter matplotlib
# ipython
# jupyter --help
mkdir pydata_la_notebook
cd pydata_la_notebook
# 启动服务
jupyter notebook
|