pyenv安装多版本python

1、python官网下载目标python版本

3.6.9版本链接:https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz
3.9.18版本链接:https://www.python.org/ftp/python/3.9.18/Python-3.9.18.tar.xz

2、基础依赖安装

[root@ecs-centos7.9 ~]#yum install git curl -y

[root@ecs-centos7.9 ~]#yum install gcc make patch gdbm-devel openssl-devel sqlite-devel readlindevel zlib-devel bzip2-devel -y

[root@ecs-centos7.9 ~]#useradd python

[root@ecs-centos7.9 ~]#su - python

3、pyenv安装

(国内站点,此版本支持的python版本有限)

[python@ecs-centos7.9 ~]$curl -L https://gitee.com/lastle/pyenv-installer/raw/master/bin/pyenv-installer | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1655  100  1655    0     0   4506      0 --:--:-- --:--:-- --:--:--  4497
Cloning into '/home/python/.pyenv'...
remote: Enumerating objects: 762, done.
remote: Counting objects: 100% (762/762), done.
remote: Compressing objects: 100% (394/394), done.
remote: Total 762 (delta 409), reused 487 (delta 273), pack-reused 0
Receiving objects: 100% (762/762), 412.32 KiB | 0 bytes/s, done.
Resolving deltas: 100% (409/409), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-doctor'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 11 (delta 1), reused 11 (delta 1), pack-reused 0
Unpacking objects: 100% (11/11), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-installer'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 16 (delta 1), reused 11 (delta 0), pack-reused 0
Unpacking objects: 100% (16/16), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-update'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 1), reused 9 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-virtualenv'...
remote: Enumerating objects: 57, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 57 (delta 11), reused 23 (delta 0), pack-reused 0
Unpacking objects: 100% (57/57), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-which-ext'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 1), reused 8 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.


WARNING: seems you still have not added 'pyenv' to the load path.




# (The below instructions are intended for common
# shell setups. See the README for more guidance
# if they don't apply and/or don't work for you.)


# Add pyenv executable to PATH and
# enable shims by adding the following
# to ~/.profile:


export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"


# If your ~/.profile sources ~/.bashrc,
# the lines need to be inserted before the part
# that does that. See the README for another option.


# If you have ~/.bash_profile, make sure that it
# also executes the above lines -- e.g. by
# copying them there or by sourcing ~/.profile


# Load pyenv into the shell by adding
# the following to ~/.bashrc:


eval "$(pyenv init -)"


# Make sure to restart your entire logon session
# for changes to profile files to take effect.


# Load pyenv-virtualenv automatically by adding
# the following to ~/.bashrc:


eval "$(pyenv virtualenv-init -)"

按照提示在家目录的.bashrc文件中增加环境变量信息

[python@ecs-centos7.9 ~]$cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"

[python@ecs-centos7.9 ~]$source .bashrc

pyenv版本更新

[python@ecs-centos7.9 ~]$pyenv update
Updating /home/python/.pyenv...
From https://gitee.com/lastle/pyenv
* branch            master     -> FETCH_HEAD
Already up-to-date.
Updating /home/python/.pyenv/plugins/pyenv-doctor...
From https://gitee.com/lastle/pyenv-doctor
* branch            master     -> FETCH_HEAD
Already up-to-date.
Updating /home/python/.pyenv/plugins/pyenv-installer...
From https://gitee.com/lastle/pyenv-installer
* branch            master     -> FETCH_HEAD
Already up-to-date.
Updating /home/python/.pyenv/plugins/pyenv-update...
From https://gitee.com/lastle/pyenv-update
* branch            master     -> FETCH_HEAD
Already up-to-date.
Updating /home/python/.pyenv/plugins/pyenv-virtualenv...
From https://gitee.com/lastle/pyenv-virtualenv
* branch            master     -> FETCH_HEAD
Already up-to-date.
Updating /home/python/.pyenv/plugins/pyenv-which-ext...
From https://gitee.com/lastle/pyenv-which-ext
* branch            master     -> FETCH_HEAD
Already up-to-date.
[python@ecs-centos7.9 ~]$

4、pyenv安装
https://github.com/pyenv/pyenv-installer/blob/master/bin/pyenv-installer
下载保存为sh脚本,然后执行安装
卸载之前的版本

[python@ecs-centos7.9 ~]$rm -rf .pyenv/

[python@ecs-centos7.9 ~]$bash pyenv.sh
Cloning into '/home/python/.pyenv'...
remote: Enumerating objects: 1182, done.
remote: Counting objects: 100% (1182/1182), done.
remote: Compressing objects: 100% (674/674), done.
remote: Total 1182 (delta 691), reused 657 (delta 375), pack-reused 0
Receiving objects: 100% (1182/1182), 587.32 KiB | 0 bytes/s, done.
Resolving deltas: 100% (691/691), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-doctor'...
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 11 (delta 1), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-update'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 10 (delta 1), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
Cloning into '/home/python/.pyenv/plugins/pyenv-virtualenv'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 63 (delta 11), reused 29 (delta 0), pack-reused 0
Unpacking objects: 100% (63/63), done.
[python@ecs-centos7.9 ~]$

环境变量配置同第3步

5、python多版本安装

查看支持的python版本
[python@ecs-centos7.9 ~]$pyenv install -l
上传python安装包至.pyenv/cache目录,cache需手动创建
[root@ecs-centos7.9 ~]#ll
total 36028
-rw-r--r-- 1 root root 17212164 Nov 18 19:53 Python-3.6.9.tar.xz
-rw-r--r-- 1 root root 19673928 Nov 18 20:14 Python-3.9.18.tar.xz
[root@ecs-centos7.9 ~]#
[root@ecs-centos7.9 ~]#
[root@ecs-centos7.9 ~]#cp Python-3.* /home/python/.pyenv/cache/
[root@ecs-centos7.9 ~]#chown python:python /home/python/.pyenv/cache/*

[root@ecs-centos7.9 ~]#pyenv install 3.6.9 -vvv

[python@ecs-centos7.9 ~]$pyenv install 3.9.18 -vvv

查看当前python版本:
[python@ecs-centos7.9 ~]$pyenv version
system (set by /home/python/.pyenv/version)

查看已安装python版本,*表示当前版本
[python@ecs-centos7.9 ~]$pyenv versions
* system (set by /home/python/.pyenv/version)
  3.6.9
  3.9.18
[python@ecs-centos7.9 ~]$

6、3.6.9版本虚拟环境安装

[python@ecs-centos7.9 ~]$mkdir 3.6.9

[python@ecs-centos7.9 ~]$cd 3.6.9/
[python@ecs-centos7.9 ~/3.6.9]$pyenv virtualenv 3.6.9 py369
Looking in links: /tmp/tmpbduzsjq7
Requirement already satisfied: setuptools in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (40.6.2)
Requirement already satisfied: pip in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (18.1)
[python@ecs-centos7.9 ~/3.6.9]$pyenv local py369
[python@ecs-centos7.9 ~/3.6.9]$python -V
Python 3.6.9

修改pip通用配置,修改pip的镜像源(windows配置文件: ~/pip/pip.ini,Linux配置文件: ~/.pip/pip.conf)

[python@ecs-centos7.9 ~]$cat .pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

升级pip版本

[python@ecs-centos7.9 ~/3.6.9]$  pip list
Package    Version
---------- -------
pip        18.1   
setuptools 40.6.2
You are using pip version 18.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[python@ecs-centos7.9 ~/3.6.9]$pip install --upgrade pip
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting pip
  Downloading https://mirrors.aliyun.com/pypi/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
    100% |████████████████████████████████| 1.7MB 10.3MB/s
Installing collected packages: pip
  Found existing installation: pip 18.1
    Uninstalling pip-18.1:
      Successfully uninstalled pip-18.1
Successfully installed pip-21.3.1
[python@ecs-centos7.9 ~/3.6.9]$  pip list               
Package    Version
---------- -------
pip        21.3.1
setuptools 40.6.2
[python@ecs-centos7.9 ~/3.6.9]$
安装ipython和juypter
[python@ecs-centos7.9 ~/3.6.9]$pip install ipython
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting ipython
  Downloading https://mirrors.aliyun.com/pypi/packages/53/09/958a4802489d28b2484114ee6414c7502ef57de6f2dbc9095b718640060c/ipython-7.16.3-py3-none-any.whl (783 kB)
     |████████████████████████████████| 783 kB 3.3 MB/s            
Requirement already satisfied: setuptools>=18.5 in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipython) (40.6.2)
Collecting traitlets>=4.2
  Downloading https://mirrors.aliyun.com/pypi/packages/ca/ab/872a23e29cec3cf2594af7e857f18b687ad21039c1f9b922fac5b9b142d5/traitlets-4.3.3-py2.py3-none-any.whl (75 kB)
     |████████████████████████████████| 75 kB 9.0 MB/s             
Collecting backcall
  Downloading https://mirrors.aliyun.com/pypi/packages/4c/1c/ff6546b6c12603d8dd1070aa3c3d273ad4c07f5771689a7b69a550e8c951/backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting decorator
  Downloading https://mirrors.aliyun.com/pypi/packages/d5/50/83c593b07763e1161326b3b8c6686f0f4b0f24d5526546bee538c89837d6/decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting pexpect
  Downloading https://mirrors.aliyun.com/pypi/packages/39/7b/88dbb785881c28a102619d46423cb853b46dbccc70d3ac362d99773a78ce/pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 11.6 MB/s            
Collecting pygments
  Downloading https://mirrors.aliyun.com/pypi/packages/0b/42/d9d95cc461f098f204cd20c85642ae40fbff81f74c300341b8d0e0df14e0/Pygments-2.14.0-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 37.2 MB/s            
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Downloading https://mirrors.aliyun.com/pypi/packages/eb/37/791f1a6edd13c61cac85282368aa68cb0f3f164440fdf60032f2cc6ca34e/prompt_toolkit-3.0.36-py3-none-any.whl (386 kB)
     |████████████████████████████████| 386 kB 35.3 MB/s            
Collecting pickleshare
  Downloading https://mirrors.aliyun.com/pypi/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting jedi<=0.17.2,>=0.10
  Downloading https://mirrors.aliyun.com/pypi/packages/c3/d4/36136b18daae06ad798966735f6c3fb96869c1be9f8245d2a8f556e40c36/jedi-0.17.2-py2.py3-none-any.whl (1.4 MB)
     |████████████████████████████████| 1.4 MB 37.0 MB/s            
Collecting parso<0.8.0,>=0.7.0
  Downloading https://mirrors.aliyun.com/pypi/packages/93/d1/e635bdde32890db5aeb2ffbde17e74f68986305a4466b0aa373b861e3f00/parso-0.7.1-py2.py3-none-any.whl (109 kB)
     |████████████████████████████████| 109 kB 38.0 MB/s            
Collecting wcwidth
  Downloading https://mirrors.aliyun.com/pypi/packages/cd/af/fb045bb3d3daedf28e1bedd771674f73de9e06664a48b1579e14d4120158/wcwidth-0.2.10-py2.py3-none-any.whl (105 kB)
     |████████████████████████████████| 105 kB 38.6 MB/s            
Collecting ipython-genutils
  Downloading https://mirrors.aliyun.com/pypi/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting six
  Downloading https://mirrors.aliyun.com/pypi/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting ptyprocess>=0.5
  Downloading https://mirrors.aliyun.com/pypi/packages/22/a6/858897256d0deac81a172289110f31629fc4cee19b6f01283303e18c8db3/ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Installing collected packages: wcwidth, six, ptyprocess, parso, ipython-genutils, decorator, traitlets, pygments, prompt-toolkit, pickleshare, pexpect, jedi, backcall, ipython
Successfully installed backcall-0.2.0 decorator-5.1.1 ipython-7.16.3 ipython-genutils-0.2.0 jedi-0.17.2 parso-0.7.1 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.36 ptyprocess-0.7.0 pygments-2.14.0 six-1.16.0 traitlets-4.3.3 wcwidth-0.2.10


[python@ecs-centos7.9 ~/3.6.9]$pip install jupyter
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting jupyter
  Downloading https://mirrors.aliyun.com/pypi/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting nbconvert
  Downloading https://mirrors.aliyun.com/pypi/packages/13/2f/acbe7006548f3914456ee47f97a2033b1b2f3daf921b12ac94105d87c163/nbconvert-6.0.7-py3-none-any.whl (552 kB)
     |████████████████████████████████| 552 kB 2.2 MB/s            
Collecting notebook
  Downloading https://mirrors.aliyun.com/pypi/packages/27/b7/7e602dc8b868bba8a542269205237b400be3427d8489b5851de5f7587996/notebook-6.4.10-py3-none-any.whl (9.9 MB)
     |████████████████████████████████| 9.9 MB 32.3 MB/s            
Collecting ipywidgets
  Downloading https://mirrors.aliyun.com/pypi/packages/14/3f/fa7fcf85061819f5a10ed09eaef38fe97d0f3f91d14674bbb26c3fc2a622/ipywidgets-7.8.1-py2.py3-none-any.whl (124 kB)
     |████████████████████████████████| 124 kB 27.0 MB/s            
Collecting qtconsole
  Downloading https://mirrors.aliyun.com/pypi/packages/67/17/d12ae86393682eaa65741808aa5207dfe85b8504874d09f1bbd1feebdc2a/qtconsole-5.2.2-py3-none-any.whl (120 kB)
     |████████████████████████████████| 120 kB 22.7 MB/s            
Collecting ipykernel
  Downloading https://mirrors.aliyun.com/pypi/packages/e9/ad/9101e0ab5e84dd117462bb3a1379d31728a849b6886458452e3d97dc6bba/ipykernel-5.5.6-py3-none-any.whl (121 kB)
     |████████████████████████████████| 121 kB 24.2 MB/s            
Collecting jupyter-console
  Downloading https://mirrors.aliyun.com/pypi/packages/fc/e9/5d4e1e616f7d7a8a9d7f313ac14bf43d1ea33cae6859eeb761b8cac364c2/jupyter_console-6.4.3-py3-none-any.whl (22 kB)
Requirement already satisfied: traitlets>=4.1.0 in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipykernel->jupyter) (4.3.3)
Collecting jupyter-client
  Downloading https://mirrors.aliyun.com/pypi/packages/56/a7/f4d3790ce7bb925d3ffe299244501a264f23ee7ec401914f7d788881ea31/jupyter_client-7.1.2-py3-none-any.whl (130 kB)
     |████████████████████████████████| 130 kB 31.6 MB/s            
Requirement already satisfied: ipython>=5.0.0 in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipykernel->jupyter) (7.16.3)
Requirement already satisfied: ipython-genutils in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipykernel->jupyter) (0.2.0)
Collecting tornado>=4.2
  Downloading https://mirrors.aliyun.com/pypi/packages/85/26/e710295dcb4aac62b08f22d07efc899574476db37532159a7f71713cdaf2/tornado-6.1-cp36-cp36m-manylinux2010_x86_64.whl (427 kB)
     |████████████████████████████████| 427 kB 26.7 MB/s            
Collecting widgetsnbextension~=3.6.6
  Downloading https://mirrors.aliyun.com/pypi/packages/9c/a0/ba2634cd75b7d7f8f9aeb38edf854cd6c9877ec064013a62630b4541b88f/widgetsnbextension-3.6.6-py2.py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 33.8 MB/s            
Collecting comm>=0.1.3
  Downloading https://mirrors.aliyun.com/pypi/packages/fe/47/0133ac1b7dc476ed77710715e98077119b3d9bae56b13f6f9055e7da1c53/comm-0.1.4-py3-none-any.whl (6.6 kB)
Collecting jupyterlab-widgets<3,>=1.0.0
  Downloading https://mirrors.aliyun.com/pypi/packages/06/c9/50a16b6e7410d661ea16160f8c650c444ab83740b437b3c202ca7d8e2b73/jupyterlab_widgets-1.1.7-py3-none-any.whl (295 kB)
     |████████████████████████████████| 295 kB 30.9 MB/s            
Requirement already satisfied: pygments in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from jupyter-console->jupyter) (2.14.0)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from jupyter-console->jupyter) (3.0.36)
Collecting nbformat>=4.4
  Downloading https://mirrors.aliyun.com/pypi/packages/e7/c7/dd50978c637a7af8234909277c4e7ec1b71310c13fb3135f3c8f5b6e045f/nbformat-5.1.3-py3-none-any.whl (178 kB)
     |████████████████████████████████| 178 kB 27.1 MB/s            
Collecting jupyter-core
  Downloading https://mirrors.aliyun.com/pypi/packages/60/7d/bee50351fe3ff6979e949b9c4c00c556a7a9732ba39b547d07d93450de23/jupyter_core-4.9.2-py3-none-any.whl (86 kB)
     |████████████████████████████████| 86 kB 10.9 MB/s            
Collecting mistune<2,>=0.8.1
  Downloading https://mirrors.aliyun.com/pypi/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting jupyterlab-pygments
  Downloading https://mirrors.aliyun.com/pypi/packages/a8/6f/c34288766797193b512c6508f5994b830fb06134fdc4ca8214daba0aa443/jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting pandocfilters>=1.4.1
  Downloading https://mirrors.aliyun.com/pypi/packages/5e/a8/878258cffd53202a6cc1903c226cf09e58ae3df6b09f8ddfa98033286637/pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting testpath
  Downloading https://mirrors.aliyun.com/pypi/packages/86/43/1ebfb29c2ca1df2bdb33dbcb2b526b77ee96873ba7b9e25650ddd4ae7156/testpath-0.6.0-py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 5.0 MB/s             
Collecting nbclient<0.6.0,>=0.5.0
  Downloading https://mirrors.aliyun.com/pypi/packages/27/70/69c3561f43ea305da4b360820e67b57244c5308faf1fa890bc444e7cf842/nbclient-0.5.9-py3-none-any.whl (69 kB)
     |████████████████████████████████| 69 kB 13.2 MB/s            
Collecting jinja2>=2.4
  Downloading https://mirrors.aliyun.com/pypi/packages/20/9a/e5d9ec41927401e41aea8af6d16e78b5e612bca4699d417f646a9610a076/Jinja2-3.0.3-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 30.5 MB/s            
Collecting defusedxml
  Downloading https://mirrors.aliyun.com/pypi/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting entrypoints>=0.2.2
  Downloading https://mirrors.aliyun.com/pypi/packages/35/a8/365059bbcd4572cbc41de17fd5b682be5868b218c3c5479071865cab9078/entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting bleach
  Downloading https://mirrors.aliyun.com/pypi/packages/64/cc/74d634e1e5659742973a23bb441404c53a7bedb6cd3962109ca5efb703e8/bleach-4.1.0-py2.py3-none-any.whl (157 kB)
     |████████████████████████████████| 157 kB 26.7 MB/s            
Collecting nest-asyncio>=1.5
  Downloading https://mirrors.aliyun.com/pypi/packages/ab/d3/48c01d1944e0ee49fdc005bf518a68b0582d3bd201e5401664890b62a647/nest_asyncio-1.5.8-py3-none-any.whl (5.3 kB)
Collecting Send2Trash>=1.8.0
  Downloading https://mirrors.aliyun.com/pypi/packages/a9/78/e4df1e080ed790acf3a704edf521006dd96b9841bd2e2a462c0d255e0565/Send2Trash-1.8.2-py3-none-any.whl (18 kB)
Collecting prometheus-client
  Downloading https://mirrors.aliyun.com/pypi/packages/ad/b3/6e18c89bf6bd120590ea538a62cae16dc763ff2745b18377c4be5495c4aa/prometheus_client-0.17.1-py3-none-any.whl (60 kB)
     |████████████████████████████████| 60 kB 13.4 MB/s            
Collecting terminado>=0.8.3
  Downloading https://mirrors.aliyun.com/pypi/packages/cb/17/b1162b39786c44e14d30ee557fbf41276c4a966dab01106c15fb70f5c27a/terminado-0.12.1-py3-none-any.whl (15 kB)
Collecting pyzmq>=17
  Downloading https://mirrors.aliyun.com/pypi/packages/f3/d5/5a00cda2db8315ed09ac5fb5516d22d138716bb346e1633a192b369a1d8a/pyzmq-25.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 28.9 MB/s            
Collecting argon2-cffi
  Downloading https://mirrors.aliyun.com/pypi/packages/a8/07/946d5a9431bae05a776a59746ec385fbb79b526738d25e4202d3e0bbf7f4/argon2_cffi-21.3.0-py3-none-any.whl (14 kB)
Collecting qtpy
  Downloading https://mirrors.aliyun.com/pypi/packages/ae/b0/56e602873b05108f0ef9189a237fefcfbcd2fa3d84130b59e50c84fc90e8/QtPy-2.0.1-py3-none-any.whl (65 kB)
     |████████████████████████████████| 65 kB 8.7 MB/s             
Requirement already satisfied: pexpect in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (4.8.0)
Requirement already satisfied: jedi<=0.17.2,>=0.10 in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.17.2)
Requirement already satisfied: backcall in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: decorator in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (5.1.1)
Requirement already satisfied: setuptools>=18.5 in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (40.6.2)
Requirement already satisfied: pickleshare in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.7.5)
Collecting MarkupSafe>=2.0
  Downloading https://mirrors.aliyun.com/pypi/packages/e2/a9/eafee9babd4b3aed918d286fbe1c20d1a22d347b30d2bddb3c49919548fa/MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)
Collecting python-dateutil>=2.1
  Downloading https://mirrors.aliyun.com/pypi/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 25.9 MB/s            
Collecting async-generator
  Downloading https://mirrors.aliyun.com/pypi/packages/71/52/39d20e03abd0ac9159c162ec24b93fbcaa111e8400308f2465432495ca2b/async_generator-1.10-py3-none-any.whl (18 kB)
Collecting jsonschema!=2.5.0,>=2.4
  Downloading https://mirrors.aliyun.com/pypi/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
     |████████████████████████████████| 56 kB 8.9 MB/s             
Requirement already satisfied: wcwidth in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->jupyter-console->jupyter) (0.2.10)
Requirement already satisfied: ptyprocess in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from terminado>=0.8.3->notebook->jupyter) (0.7.0)
Requirement already satisfied: six in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from traitlets>=4.1.0->ipykernel->jupyter) (1.16.0)
Collecting argon2-cffi-bindings
  Downloading https://mirrors.aliyun.com/pypi/packages/ec/f7/378254e6dd7ae6f31fe40c8649eea7d4832a42243acaf0f1fff9083b2bed/argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86 kB)
     |████████████████████████████████| 86 kB 8.6 MB/s             
Collecting typing-extensions
  Downloading https://mirrors.aliyun.com/pypi/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting dataclasses
  Downloading https://mirrors.aliyun.com/pypi/packages/fe/ca/75fac5856ab5cfa51bbbcefa250182e50441074fdc3f803f6e76451fab43/dataclasses-0.8-py3-none-any.whl (19 kB)
Collecting packaging
  Downloading https://mirrors.aliyun.com/pypi/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 11.4 MB/s            
Collecting webencodings
  Downloading https://mirrors.aliyun.com/pypi/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/python/.pyenv/versions/3.6.9/envs/py369/lib/python3.6/site-packages (from jedi<=0.17.2,>=0.10->ipython>=5.0.0->ipykernel->jupyter) (0.7.1)
Collecting pyrsistent>=0.14.0
  Downloading https://mirrors.aliyun.com/pypi/packages/6c/19/1af501f6f388a40ede6d0185ba481bdb18ffc99deab0dd0d092b173bc0f4/pyrsistent-0.18.0-cp36-cp36m-manylinux1_x86_64.whl (117 kB)
     |████████████████████████████████| 117 kB 30.4 MB/s            
Collecting attrs>=17.4.0
  Downloading https://mirrors.aliyun.com/pypi/packages/fb/6e/6f83bf616d2becdf333a1640f1d463fef3150e2e926b7010cb0f81c95e88/attrs-22.2.0-py3-none-any.whl (60 kB)
     |████████████████████████████████| 60 kB 13.2 MB/s            
Collecting importlib-metadata
  Downloading https://mirrors.aliyun.com/pypi/packages/a0/a1/b153a0a4caf7a7e3f15c2cd56c7702e2cf3d89b1b359d1f1c5e59d68f4ce/importlib_metadata-4.8.3-py3-none-any.whl (17 kB)
Collecting cffi>=1.0.1
  Downloading https://mirrors.aliyun.com/pypi/packages/3a/12/d6066828014b9ccb2bbb8e1d9dc28872d20669b65aeb4a86806a0757813f/cffi-1.15.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (402 kB)
     |████████████████████████████████| 402 kB 34.4 MB/s            
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading https://mirrors.aliyun.com/pypi/packages/39/92/8486ede85fcc088f1b3dba4ce92dd29d126fd96b0008ea213167940a2475/pyparsing-3.1.1-py3-none-any.whl (103 kB)
     |████████████████████████████████| 103 kB 30.0 MB/s            
Collecting pycparser
  Downloading https://mirrors.aliyun.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
     |████████████████████████████████| 118 kB 27.8 MB/s            
Collecting zipp>=0.5
  Downloading https://mirrors.aliyun.com/pypi/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl (5.3 kB)
Installing collected packages: zipp, typing-extensions, pyrsistent, importlib-metadata, attrs, tornado, pyzmq, python-dateutil, pyparsing, pycparser, nest-asyncio, jupyter-core, jsonschema, entrypoints, webencodings, packaging, nbformat, MarkupSafe, jupyter-client, cffi, async-generator, testpath, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, defusedxml, dataclasses, bleach, argon2-cffi-bindings, terminado, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, notebook, widgetsnbextension, qtpy, jupyterlab-widgets, comm, qtconsole, jupyter-console, ipywidgets, jupyter
Successfully installed MarkupSafe-2.0.1 Send2Trash-1.8.2 argon2-cffi-21.3.0 argon2-cffi-bindings-21.2.0 async-generator-1.10 attrs-22.2.0 bleach-4.1.0 cffi-1.15.1 comm-0.1.4 dataclasses-0.8 defusedxml-0.7.1 entrypoints-0.4 importlib-metadata-4.8.3 ipykernel-5.5.6 ipywidgets-7.8.1 jinja2-3.0.3 jsonschema-3.2.0 jupyter-1.0.0 jupyter-client-7.1.2 jupyter-console-6.4.3 jupyter-core-4.9.2 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.1.7 mistune-0.8.4 nbclient-0.5.9 nbconvert-6.0.7 nbformat-5.1.3 nest-asyncio-1.5.8 notebook-6.4.10 packaging-21.3 pandocfilters-1.5.0 prometheus-client-0.17.1 pycparser-2.21 pyparsing-3.1.1 pyrsistent-0.18.0 python-dateutil-2.8.2 pyzmq-25.1.1 qtconsole-5.2.2 qtpy-2.0.1 terminado-0.12.1 testpath-0.6.0 tornado-6.1 typing-extensions-4.1.1 webencodings-0.5.1 widgetsnbextension-3.6.6 zipp-3.6.0
[python@ecs-centos7.9 ~/3.6.9]$

启用juypter

[python@ecs-centos7.9 ~/3.6.9]$jupyter notebook --ip=0.0.0.0 --no-browser
[I 20:05:20.118 NotebookApp] Writing notebook server cookie secret to /home/python/.local/share/jupyter/runtime/notebook_cookie_secret
[I 20:05:20.381 NotebookApp] Serving notebooks from local directory: /home/python/3.6.9
[I 20:05:20.381 NotebookApp] Jupyter Notebook 6.4.10 is running at:
[I 20:05:20.381 NotebookApp] http://ecs-centos7.9:8888/?token=db6f04554520649e2fa515e622e41107e28df59a1941a379
[I 20:05:20.381 NotebookApp]  or http://127.0.0.1:8888/?token=db6f04554520649e2fa515e622e41107e28df59a1941a379
[I 20:05:20.381 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 20:05:20.386 NotebookApp]
    
    To access the notebook, open this file in a browser:
        file:///home/python/.local/share/jupyter/runtime/nbserver-32214-open.html
    Or copy and paste one of these URLs:
        http://ecs-centos7.9:8888/?token=db6f04554520649e2fa515e622e41107e28df59a1941a379
     or http://127.0.0.1:8888/?token=db6f04554520649e2fa515e622e41107e28df59a1941a379


web页面登录http://127.0.0.1:8888/?token=db6f04554520649e2fa515e622e41107e28df59a1941a379,将127.0.0.1换成对应IP即可

7、3.9.18版本虚拟环境安装

[python@ecs-centos7.9 ~]$mkdir 3.9.18
[python@ecs-centos7.9 ~]$
[python@ecs-centos7.9 ~]$cd 3.9.18/
[python@ecs-centos7.9 ~/3.9.18]$python -V
Python 2.7.5
[python@ecs-centos7.9 ~/3.9.18]$pyenv virtualenv 3.9.18 py3918
Looking in links: /tmp/tmpk8o2gv2o
Requirement already satisfied: setuptools in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (58.1.0)
Requirement already satisfied: pip in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (23.0.1)
[python@ecs-centos7.9 ~/3.9.18]$pyenv local py3918
[python@ecs-centos7.9 ~/3.9.18]$python -V
Python 3.9.18
[python@ecs-centos7.9 ~/3.9.18]$pyenv version
py3918 (set by /home/python/3.9.18/.python-version)

[python@ecs-centos7.9 ~/3.9.18]$pip install ipython
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting ipython
  Downloading https://mirrors.aliyun.com/pypi/packages/20/45/18f0dc2cbc3ee6680a004f620fb1400c6511ded0a76a2dd241813786ce73/ipython-8.17.2-py3-none-any.whl (808 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 808.4/808.4 kB 7.1 MB/s eta 0:00:00
Collecting pexpect>4.3
  Using cached https://mirrors.aliyun.com/pypi/packages/39/7b/88dbb785881c28a102619d46423cb853b46dbccc70d3ac362d99773a78ce/pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting decorator
  Using cached https://mirrors.aliyun.com/pypi/packages/d5/50/83c593b07763e1161326b3b8c6686f0f4b0f24d5526546bee538c89837d6/decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting jedi>=0.16
  Downloading https://mirrors.aliyun.com/pypi/packages/20/9f/bc63f0f0737ad7a60800bfd472a4836661adae21f9c2535f3957b1e54ceb/jedi-0.19.1-py2.py3-none-any.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 15.9 MB/s eta 0:00:00
Collecting typing-extensions
  Downloading https://mirrors.aliyun.com/pypi/packages/24/21/7d397a4b7934ff4028987914ac1044d3b7d52712f30e2ac7a2ae5bc86dd0/typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30
  Downloading https://mirrors.aliyun.com/pypi/packages/1f/9d/be9b01085bbd67a71c4b6aa02518fade8104e7a2224e5de5e947811d7176/prompt_toolkit-3.0.41-py3-none-any.whl (385 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 385.5/385.5 kB 40.2 MB/s eta 0:00:00
Collecting stack-data
  Downloading https://mirrors.aliyun.com/pypi/packages/f1/7b/ce1eafaf1a76852e2ec9b22edecf1daa58175c090266e9f6c64afcd81d91/stack_data-0.6.3-py3-none-any.whl (24 kB)
Collecting pygments>=2.4.0
  Downloading https://mirrors.aliyun.com/pypi/packages/4f/34/6a8073bd275d7034476b4af94a5f3ca206b86e4c206a61eeb4e3d73b4a06/pygments-2.17.1-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 17.2 MB/s eta 0:00:00
Collecting exceptiongroup
  Downloading https://mirrors.aliyun.com/pypi/packages/ad/83/b71e58666f156a39fb29417e4c8ca4bc7400c0dd4ed9e8842ab54dc8c344/exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
Collecting matplotlib-inline
  Downloading https://mirrors.aliyun.com/pypi/packages/f2/51/c34d7a1d528efaae3d8ddb18ef45a41f284eacf9e514523b191b7d0872cc/matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB)
Collecting traitlets>=5
  Downloading https://mirrors.aliyun.com/pypi/packages/ed/fd/cfc0d27ca11f3dd12b2a90d06875d8bfb532ef40ce67be4066d10807f4aa/traitlets-5.13.0-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.0/85.0 kB 19.8 MB/s eta 0:00:00
Collecting parso<0.9.0,>=0.8.3
  Downloading https://mirrors.aliyun.com/pypi/packages/05/63/8011bd08a4111858f79d2b09aad86638490d62fbf881c44e434a6dfca87b/parso-0.8.3-py2.py3-none-any.whl (100 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.8/100.8 kB 23.1 MB/s eta 0:00:00
Collecting ptyprocess>=0.5
  Using cached https://mirrors.aliyun.com/pypi/packages/22/a6/858897256d0deac81a172289110f31629fc4cee19b6f01283303e18c8db3/ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting wcwidth
  Using cached https://mirrors.aliyun.com/pypi/packages/cd/af/fb045bb3d3daedf28e1bedd771674f73de9e06664a48b1579e14d4120158/wcwidth-0.2.10-py2.py3-none-any.whl (105 kB)
Collecting executing>=1.2.0
  Downloading https://mirrors.aliyun.com/pypi/packages/80/03/6ea8b1b2a5ab40a7a60dc464d3daa7aa546e0a74d74a9f8ff551ea7905db/executing-2.0.1-py2.py3-none-any.whl (24 kB)
Collecting asttokens>=2.1.0
  Downloading https://mirrors.aliyun.com/pypi/packages/45/86/4736ac618d82a20d87d2f92ae19441ebc7ac9e7a581d7e58bbe79233b24a/asttokens-2.4.1-py2.py3-none-any.whl (27 kB)
Collecting pure-eval
  Downloading https://mirrors.aliyun.com/pypi/packages/2b/27/77f9d5684e6bce929f5cfe18d6cfbe5133013c06cb2fbf5933670e60761d/pure_eval-0.2.2-py3-none-any.whl (11 kB)
Collecting six>=1.12.0
  Using cached https://mirrors.aliyun.com/pypi/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: wcwidth, pure-eval, ptyprocess, typing-extensions, traitlets, six, pygments, prompt-toolkit, pexpect, parso, executing, exceptiongroup, decorator, matplotlib-inline, jedi, asttokens, stack-data, ipython
Successfully installed asttokens-2.4.1 decorator-5.1.1 exceptiongroup-1.1.3 executing-2.0.1 ipython-8.17.2 jedi-0.19.1 matplotlib-inline-0.1.6 parso-0.8.3 pexpect-4.8.0 prompt-toolkit-3.0.41 ptyprocess-0.7.0 pure-eval-0.2.2 pygments-2.17.1 six-1.16.0 stack-data-0.6.3 traitlets-5.13.0 typing-extensions-4.8.0 wcwidth-0.2.10


[notice] A new release of pip is available: 23.0.1 -> 23.3.1
[notice] To update, run: python3.9 -m pip install --upgrade pip

[python@ecs-centos7.9 ~/3.9.18]$python3.9 -m pip install --upgrade pip
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: pip in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (23.0.1)
Collecting pip
  Downloading https://mirrors.aliyun.com/pypi/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 9.4 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
Successfully installed pip-23.3.1
[python@ecs-centos7.9 ~/3.9.18]$

[python@ecs-centos7.9 ~/3.9.18]$pip install jupyter
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting jupyter
  Downloading https://mirrors.aliyun.com/pypi/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting notebook (from jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f3/2b/b904c57709b83c6cbd818d21040db36719207f3d17db9b124c60cd483d94/notebook-7.0.6-py3-none-any.whl (4.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 10.0 MB/s eta 0:00:00
Collecting qtconsole (from jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/d5/21/0887c50fa5bca7bfde29f65999a6ac234617f2a007b6b387aa4dc0ca36a8/qtconsole-5.5.1-py3-none-any.whl (123 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.4/123.4 kB 15.1 MB/s eta 0:00:00
Collecting jupyter-console (from jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ca/77/71d78d58f15c22db16328a476426f7ac4a60d3a5a7ba3b9627ee2f7903d4/jupyter_console-6.6.3-py3-none-any.whl (24 kB)
Collecting nbconvert (from jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/84/61/460af4b68b3c681d1f82d48646cf2acb8f6d29edf9a8366dc37ae69e902a/nbconvert-7.11.0-py3-none-any.whl (256 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 256.6/256.6 kB 16.5 MB/s eta 0:00:00
Collecting ipykernel (from jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/c8/7d/2df9b38e2310e36a1b4a92bfe85f53ce24c638f9b7d9bd992bded11ce604/ipykernel-6.26.0-py3-none-any.whl (114 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.3/114.3 kB 14.0 MB/s eta 0:00:00
Collecting ipywidgets (from jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/4a/0e/57ed498fafbc60419a9332d872e929879ceba2d73cb11d284d7112472b3e/ipywidgets-8.1.1-py3-none-any.whl (139 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.4/139.4 kB 15.3 MB/s eta 0:00:00
Collecting comm>=0.1.1 (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/7b/a6/5fd0242e974914b139451eea0a61ed9fd2e47157e33a67939043c50a94dd/comm-0.2.0-py3-none-any.whl (7.0 kB)
Collecting debugpy>=1.6.5 (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f7/79/6053a14f60e879b8cb1a42dadbbef8822603eadde79944c61e955309b622/debugpy-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 14.5 MB/s eta 0:00:00
Requirement already satisfied: ipython>=7.23.1 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipykernel->jupyter) (8.17.2)
Collecting jupyter-client>=6.1.12 (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/43/ae/5f4f72980765e2e5e02b260f9c53bcc706cefa7ac9c8d7240225c55788d4/jupyter_client-8.6.0-py3-none-any.whl (105 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 105.9/105.9 kB 17.3 MB/s eta 0:00:00
Collecting jupyter-core!=5.0.*,>=4.12 (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ab/ea/af6508f71d2bcbf4db538940120cc3d3f10287f62105e756bd315aa345b5/jupyter_core-5.5.0-py3-none-any.whl (28 kB)
Requirement already satisfied: matplotlib-inline>=0.1 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipykernel->jupyter) (0.1.6)
Collecting nest-asyncio (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ab/d3/48c01d1944e0ee49fdc005bf518a68b0582d3bd201e5401664890b62a647/nest_asyncio-1.5.8-py3-none-any.whl (5.3 kB)
Collecting packaging (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ec/1a/610693ac4ee14fcdf2d9bf3c493370e4f2ef7ae2e19217d7a237ff42367d/packaging-23.2-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 8.3 MB/s eta 0:00:00
Collecting psutil (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/19/06/4e3fa3c1b79271e933c5ddbad3a48aa2c3d5f592a0fb7c037f3e0f619f4d/psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 283.6/283.6 kB 33.6 MB/s eta 0:00:00
Collecting pyzmq>=20 (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/a2/e0/08605421a2ede5d87adbde9685599fa7e6af1df700c657759a1892ced942/pyzmq-25.1.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 14.8 MB/s eta 0:00:00
Collecting tornado>=6.1 (from ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/66/a5/e6da56c03ff61200d5a43cfb75ab09316fc0836aa7ee26b4e9dcbfc3ae85/tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.7/427.7 kB 27.9 MB/s eta 0:00:00
Requirement already satisfied: traitlets>=5.4.0 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipykernel->jupyter) (5.13.0)
Collecting widgetsnbextension~=4.0.9 (from ipywidgets->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/29/03/107d96077c4befed191f7ad1a12c7b52a8f9d2778a5836d59f9855c105f6/widgetsnbextension-4.0.9-py3-none-any.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 15.7 MB/s eta 0:00:00
Collecting jupyterlab-widgets~=3.0.9 (from ipywidgets->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/e8/05/0ebab152288693b5ec7b339aab857362947031143b282853b4c2dd4b5b40/jupyterlab_widgets-3.0.9-py3-none-any.whl (214 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 214.9/214.9 kB 28.5 MB/s eta 0:00:00
Requirement already satisfied: prompt-toolkit>=3.0.30 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from jupyter-console->jupyter) (3.0.41)
Requirement already satisfied: pygments in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from jupyter-console->jupyter) (2.17.1)
Collecting beautifulsoup4 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/57/f4/a69c20ee4f660081a7dedb1ac57f29be9378e04edfcb90c526b923d4bebc/beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.0/143.0 kB 22.5 MB/s eta 0:00:00
Collecting bleach!=5.0.0 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ea/63/da7237f805089ecc28a3f36bca6a21c31fcbc2eb380f3b8f1be3312abd14/bleach-6.1.0-py3-none-any.whl (162 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.8/162.8 kB 20.6 MB/s eta 0:00:00
Collecting defusedxml (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting importlib-metadata>=3.6 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/cc/37/db7ba97e676af155f5fcb1a35466f446eadc9104e25b83366e8088c9c926/importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Collecting jinja2>=3.0 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 21.5 MB/s eta 0:00:00
Collecting jupyterlab-pygments (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/c0/7e/c3d1df3ae9b41686e664051daedbd70eea2e1d2bd9d9c33e7e1455bc9f96/jupyterlab_pygments-0.2.2-py2.py3-none-any.whl (21 kB)
Collecting markupsafe>=2.0 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/de/63/cb7e71984e9159ec5f45b5e81e896c8bdd0e45fe3fc6ce02ab497f0d790e/MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting mistune<4,>=2.0.3 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f0/74/c95adcdf032956d9ef6c89a9b8a5152bf73915f8c633f3e3d88d06bd699c/mistune-3.0.2-py3-none-any.whl (47 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.0/48.0 kB 7.5 MB/s eta 0:00:00
Collecting nbclient>=0.5.0 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/6b/3a/607149974149f847125c38a62b9ea2b8267eb74823bbf8d8c54ae0212a00/nbclient-0.9.0-py3-none-any.whl (24 kB)
Collecting nbformat>=5.7 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f4/e7/ef30a90b70eba39e675689b9eaaa92530a71d7435ab8f9cae520814e0caf/nbformat-5.9.2-py3-none-any.whl (77 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.6/77.6 kB 12.9 MB/s eta 0:00:00
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/5e/a8/878258cffd53202a6cc1903c226cf09e58ae3df6b09f8ddfa98033286637/pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting tinycss2 (from nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/da/99/fd23634d6962c2791fb8cb6ccae1f05dcbfc39bce36bba8b1c9a8d92eae8/tinycss2-1.2.1-py3-none-any.whl (21 kB)
Collecting jupyter-server<3,>=2.4.0 (from notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/61/e5/99ea5815a26caca23883f6ac676282d25c05f62068f51bdcefde3f328822/jupyter_server-2.10.1-py3-none-any.whl (378 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 378.6/378.6 kB 30.0 MB/s eta 0:00:00
Collecting jupyterlab-server<3,>=2.22.1 (from notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/a2/97/abbbe35fc67b6f9423309988f2e411f7cb117b08321866d3d8b720f4c0d4/jupyterlab_server-2.25.2-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.9/58.9 kB 10.2 MB/s eta 0:00:00
Collecting jupyterlab<5,>=4.0.2 (from notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/a7/f2/b3ed35a9d75c22c7a90dc51963e57373d000007ba3ccbfc6277ba6448aa8/jupyterlab-4.0.9-py3-none-any.whl (9.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 13.1 MB/s eta 0:00:00
Collecting notebook-shim<0.3,>=0.2 (from notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f4/79/73250372e5bbab63018b41b02d5cc6b395655ec6c1254e477ef7c913aada/notebook_shim-0.2.3-py3-none-any.whl (13 kB)
Collecting qtpy>=2.4.0 (from qtconsole->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/7e/a9/2146d5117ad8a81185331e0809a6b48933c10171f5bac253c6df9fce991c/QtPy-2.4.1-py3-none-any.whl (93 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.5/93.5 kB 14.9 MB/s eta 0:00:00
Requirement already satisfied: six>=1.9.0 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from bleach!=5.0.0->nbconvert->jupyter) (1.16.0)
Collecting webencodings (from bleach!=5.0.0->nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting zipp>=0.5 (from importlib-metadata>=3.6->nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/d9/66/48866fc6b158c81cc2bfecc04c480f105c6040e8b077bc54c634b4a67926/zipp-3.17.0-py3-none-any.whl (7.4 kB)
Requirement already satisfied: decorator in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (5.1.1)
Requirement already satisfied: jedi>=0.16 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.19.1)
Requirement already satisfied: stack-data in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.6.3)
Requirement already satisfied: typing-extensions in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (4.8.0)
Requirement already satisfied: exceptiongroup in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (1.1.3)
Requirement already satisfied: pexpect>4.3 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (4.8.0)
Collecting python-dateutil>=2.8.2 (from jupyter-client>=6.1.12->ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 29.7 MB/s eta 0:00:00
Collecting platformdirs>=2.5 (from jupyter-core!=5.0.*,>=4.12->ipykernel->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/31/16/70be3b725073035aa5fc3229321d06e22e73e3e09f6af78dcfdf16c7636c/platformdirs-4.0.0-py3-none-any.whl (17 kB)
Collecting anyio>=3.1.0 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl (83 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.1/83.1 kB 13.7 MB/s eta 0:00:00
Collecting argon2-cffi (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/a4/6a/e8a041599e78b6b3752da48000b14c8d1e8a04ded09c88c714ba047f34f5/argon2_cffi-23.1.0-py3-none-any.whl (15 kB)
Collecting jupyter-events>=0.9.0 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/e3/55/0c1aa72f4317e826a471dc4adc3036acd11d496ded68c4bbac2a88551519/jupyter_events-0.9.0-py3-none-any.whl (18 kB)
Collecting jupyter-server-terminals (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ea/7f/36db12bdb90f5237766dcbf59892198daab7260acbcf03fc75e2a2a82672/jupyter_server_terminals-0.4.4-py3-none-any.whl (13 kB)
Collecting overrides (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/da/28/3fa6ef8297302fc7b3844980b6c5dbc71cdbd4b61e9b2591234214d5ab39/overrides-7.4.0-py3-none-any.whl (17 kB)
Collecting prometheus-client (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/aa/84/8b11274c61f81376ee06dfb5b60b176097b58166f095d55014f033632f46/prometheus_client-0.18.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 10.3 MB/s eta 0:00:00
Collecting send2trash>=1.8.2 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/a9/78/e4df1e080ed790acf3a704edf521006dd96b9841bd2e2a462c0d255e0565/Send2Trash-1.8.2-py3-none-any.whl (18 kB)
Collecting terminado>=0.8.3 (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/69/df/deebc9fb14a49062a3330f673e80b100e665b54d998163b3f62620b6240c/terminado-0.18.0-py3-none-any.whl (14 kB)
Collecting websocket-client (from jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/c4/3c/1892ce394828c43d4f65248ebdee3854114266b75d1f5915cb211155ad7b/websocket_client-1.6.4-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.3/57.3 kB 9.0 MB/s eta 0:00:00
Collecting async-lru>=1.0.0 (from jupyterlab<5,>=4.0.2->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/fa/9f/3c3503693386c4b0f245eaf5ca6198e3b28879ca0a40bde6b0e319793453/async_lru-2.0.4-py3-none-any.whl (6.1 kB)
Collecting jupyter-lsp>=2.0.0 (from jupyterlab<5,>=4.0.2->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/8f/b6/a1571e48550855a79898f851f57e5858b00eb36b09ea3b1a8bb65c53a290/jupyter_lsp-2.2.0-py3-none-any.whl (65 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.0/66.0 kB 7.5 MB/s eta 0:00:00
Collecting tomli (from jupyterlab<5,>=4.0.2->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting babel>=2.10 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/86/14/5dc2eb02b7cc87b2f95930310a2cc5229198414919a116b564832c747bc1/Babel-2.13.1-py3-none-any.whl (10.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 13.7 MB/s eta 0:00:00
Collecting json5>=0.9.0 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/70/ba/fa37123a86ae8287d6678535a944f9c3377d8165e536310ed6f6cb0f0c0e/json5-0.9.14-py2.py3-none-any.whl (19 kB)
Collecting jsonschema>=4.18.0 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/0f/ed/0058234d8dd2b1fc6beeea8eab945191a05e9d391a63202f49fe23327586/jsonschema-4.20.0-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.7/84.7 kB 14.5 MB/s eta 0:00:00
Collecting requests>=2.31 (from jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 10.5 MB/s eta 0:00:00
Collecting fastjsonschema (from nbformat>=5.7->nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/63/e9/d3dca06ea6b8e58e65716973bc7d9bee9bc39ce233595aa04d04e89a1089/fastjsonschema-2.19.0-py3-none-any.whl (23 kB)
Requirement already satisfied: wcwidth in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from prompt-toolkit>=3.0.30->jupyter-console->jupyter) (0.2.10)
Collecting soupsieve>1.2 (from beautifulsoup4->nbconvert->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/4c/f3/038b302fdfbe3be7da016777069f26ceefe11a681055ea1f7817546508e3/soupsieve-2.5-py3-none-any.whl (36 kB)
Collecting idna>=2.8 (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 10.2 MB/s eta 0:00:00
Collecting sniffio>=1.1 (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/c3/a0/5dba8ed157b0136607c7f2151db695885606968d1fae123dc3391e0cfdbf/sniffio-1.3.0-py3-none-any.whl (10 kB)
Requirement already satisfied: parso<0.9.0,>=0.8.3 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.3)
Collecting attrs>=22.2.0 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f0/eb/fcb708c7bf5056045e9e98f62b93bd7467eb718b0202e7698eb11d66416c/attrs-23.1.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 10.4 MB/s eta 0:00:00
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/20/a9/384ec45013ab883d7c2bf120f2988682986fdead973decf0bae28a4523e7/jsonschema_specifications-2023.11.1-py3-none-any.whl (17 kB)
Collecting referencing>=0.28.4 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/29/c1/69342fbc8efd1aac5cda853cea771763b95d92325c4f8f83b499c07bc698/referencing-0.31.0-py3-none-any.whl (25 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/4c/1c/9e48f3a31edae9aecc2258a96d2d1b61dc68337988251ca1c639669699fd/rpds_py-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 16.1 MB/s eta 0:00:00
Collecting python-json-logger>=2.0.4 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/35/a6/145655273568ee78a581e734cf35beb9e33a370b29c5d3c8fee3744de29f/python_json_logger-2.0.7-py3-none-any.whl (8.1 kB)
Collecting pyyaml>=5.3 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/7d/39/472f2554a0f1e825bd7c5afc11c817cd7a2f3657460f7159f691fbb37c51/PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (738 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 738.9/738.9 kB 16.2 MB/s eta 0:00:00
Collecting rfc3339-validator (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/7b/44/4e421b96b67b2daff264473f7465db72fbdf36a07e05494f50300cc7b0c6/rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
Collecting rfc3986-validator>=0.1.1 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/9e/51/17023c0f8f1869d8806b979a2bffa3f861f26a3f1a66b094288323fba52f/rfc3986_validator-0.1.1-py2.py3-none-any.whl (4.2 kB)
Requirement already satisfied: ptyprocess>=0.5 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from pexpect>4.3->ipython>=7.23.1->ipykernel->jupyter) (0.7.0)
Collecting charset-normalizer<4,>=2 (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/98/69/5d8751b4b670d623aa7a47bef061d69c279e9f922f6705147983aa76c3ce/charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.3/142.3 kB 18.9 MB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1 (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/96/94/c31f58c7a7f470d5665935262ebd7455c7e4c7782eb525658d3dbf4b9403/urllib3-2.1.0-py3-none-any.whl (104 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 14.7 MB/s eta 0:00:00
Collecting certifi>=2017.4.17 (from requests>=2.31->jupyterlab-server<3,>=2.22.1->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/64/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl (162 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 26.4 MB/s eta 0:00:00
Collecting argon2-cffi-bindings (from argon2-cffi->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ec/f7/378254e6dd7ae6f31fe40c8649eea7d4832a42243acaf0f1fff9083b2bed/argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.2/86.2 kB 14.1 MB/s eta 0:00:00
Requirement already satisfied: executing>=1.2.0 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (2.0.1)
Requirement already satisfied: asttokens>=2.1.0 in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (2.4.1)
Requirement already satisfied: pure-eval in /home/python/.pyenv/versions/3.9.18/envs/py3918/lib/python3.9/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (0.2.2)
Collecting fqdn (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/cf/58/8acf1b3e91c58313ce5cb67df61001fc9dcd21be4fadb76c1a2d540e09ed/fqdn-1.5.1-py3-none-any.whl (9.1 kB)
Collecting isoduration (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/7b/55/e5326141505c5d5e34c5e0935d2908a74e4561eca44108fbfb9c13d2911a/isoduration-20.11.0-py3-none-any.whl (11 kB)
Collecting jsonpointer>1.13 (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/12/f6/0232cc0c617e195f06f810534d00b74d2f348fe71b2118009ad8ad31f878/jsonpointer-2.4-py2.py3-none-any.whl (7.8 kB)
Collecting uri-template (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/e7/00/3fca040d7cf8a32776d3d81a00c8ee7457e00f80c649f1e4a863c8321ae9/uri_template-1.3.0-py3-none-any.whl (11 kB)
Collecting webcolors>=1.11 (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/d5/e1/3e9013159b4cbb71df9bd7611cbf90dc2c621c8aeeb677fc41dad72f2261/webcolors-1.13-py3-none-any.whl (14 kB)
Collecting cffi>=1.0.1 (from argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/ea/ac/e9e77bc385729035143e54cc8c4785bd480eaca9df17565963556b0b7a93/cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (443 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 443.4/443.4 kB 31.5 MB/s eta 0:00:00
Collecting pycparser (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 18.7 MB/s eta 0:00:00
Collecting arrow>=0.15.0 (from isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/f8/ed/e97229a566617f2ae958a6b13e7cc0f585470eac730a73e9e82c32a3cdd2/arrow-1.3.0-py3-none-any.whl (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.4/66.4 kB 11.3 MB/s eta 0:00:00
Collecting types-python-dateutil>=2.8.10 (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter)
  Downloading https://mirrors.aliyun.com/pypi/packages/1c/af/5af2e2a02bc464c1c7818c260606343020b96c0d5b64f637d9e91aee24fe/types_python_dateutil-2.8.19.14-py3-none-any.whl (9.4 kB)
Installing collected packages: webencodings, types-python-dateutil, json5, fastjsonschema, zipp, widgetsnbextension, websocket-client, webcolors, urllib3, uri-template, tornado, tomli, tinycss2, soupsieve, sniffio, send2trash, rpds-py, rfc3986-validator, rfc3339-validator, pyzmq, pyyaml, python-json-logger, python-dateutil, pycparser, psutil, prometheus-client, platformdirs, pandocfilters, packaging, overrides, nest-asyncio, mistune, markupsafe, jupyterlab-widgets, jupyterlab-pygments, jsonpointer, idna, fqdn, defusedxml, debugpy, comm, charset-normalizer, certifi, bleach, babel, attrs, async-lru, terminado, requests, referencing, qtpy, jupyter-core, jinja2, importlib-metadata, cffi, beautifulsoup4, arrow, anyio, jupyter-server-terminals, jupyter-client, jsonschema-specifications, isoduration, argon2-cffi-bindings, jsonschema, ipywidgets, ipykernel, argon2-cffi, qtconsole, nbformat, jupyter-console, nbclient, jupyter-events, nbconvert, jupyter-server, notebook-shim, jupyterlab-server, jupyter-lsp, jupyterlab, notebook, jupyter
Successfully installed anyio-4.0.0 argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 arrow-1.3.0 async-lru-2.0.4 attrs-23.1.0 babel-2.13.1 beautifulsoup4-4.12.2 bleach-6.1.0 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 comm-0.2.0 debugpy-1.8.0 defusedxml-0.7.1 fastjsonschema-2.19.0 fqdn-1.5.1 idna-3.4 importlib-metadata-6.8.0 ipykernel-6.26.0 ipywidgets-8.1.1 isoduration-20.11.0 jinja2-3.1.2 json5-0.9.14 jsonpointer-2.4 jsonschema-4.20.0 jsonschema-specifications-2023.11.1 jupyter-1.0.0 jupyter-client-8.6.0 jupyter-console-6.6.3 jupyter-core-5.5.0 jupyter-events-0.9.0 jupyter-lsp-2.2.0 jupyter-server-2.10.1 jupyter-server-terminals-0.4.4 jupyterlab-4.0.9 jupyterlab-pygments-0.2.2 jupyterlab-server-2.25.2 jupyterlab-widgets-3.0.9 markupsafe-2.1.3 mistune-3.0.2 nbclient-0.9.0 nbconvert-7.11.0 nbformat-5.9.2 nest-asyncio-1.5.8 notebook-7.0.6 notebook-shim-0.2.3 overrides-7.4.0 packaging-23.2 pandocfilters-1.5.0 platformdirs-4.0.0 prometheus-client-0.18.0 psutil-5.9.6 pycparser-2.21 python-dateutil-2.8.2 python-json-logger-2.0.7 pyyaml-6.0.1 pyzmq-25.1.1 qtconsole-5.5.1 qtpy-2.4.1 referencing-0.31.0 requests-2.31.0 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rpds-py-0.13.0 send2trash-1.8.2 sniffio-1.3.0 soupsieve-2.5 terminado-0.18.0 tinycss2-1.2.1 tomli-2.0.1 tornado-6.3.3 types-python-dateutil-2.8.19.14 uri-template-1.3.0 urllib3-2.1.0 webcolors-1.13 webencodings-0.5.1 websocket-client-1.6.4 widgetsnbextension-4.0.9 zipp-3.17.0

启动juypter

[python@ecs-centos7.9 ~/3.9.18]$jupyter notebook --ip=0.0.0.0 --no-browser
Traceback (most recent call last):
  File "/home/python/.pyenv/versions/py3918/bin/jupyter-notebook", line 5, in <module>
    from notebook.app import main
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/notebook/app.py", line 9, in <module>
    from jupyter_client.utils import ensure_async  # type:ignore[attr-defined]
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyter_client/__init__.py", line 3, in <module>
    from .asynchronous import AsyncKernelClient
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyter_client/asynchronous/__init__.py", line 1, in <module>
    from .client import AsyncKernelClient  # noqa
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyter_client/asynchronous/client.py", line 8, in <module>
    import zmq.asyncio
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/zmq/__init__.py", line 61, in <module>
    _load_libzmq()
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/zmq/__init__.py", line 23, in _load_libzmq
    import ctypes
  File "/home/python/.pyenv/versions/3.9.18/lib/python3.9/ctypes/__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'

解决报错:

1、ModuleNotFoundError: No module named '_ctypes'

安装外部函数库(libffi-devel)
[root@ecs-centos7.9 ~]#yum install libffi-devel -y


Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package libffi-devel.x86_64 0:3.0.13-19.el7 will be installed
--> Finished Dependency Resolution


Dependencies Resolved

===================================================================================================================================================================================================
Package                                           Arch                                        Version                                             Repository                                 Size
===================================================================================================================================================================================================
Installing:
libffi-devel                                      x86_64                                      3.0.13-19.el7                                       base                                       23 k

Transaction Summary
===================================================================================================================================================================================================
Install  1 Package

Total download size: 23 k
Installed size: 27 k
Downloading packages:
libffi-devel-3.0.13-19.el7.x86_64.rpm                                                                                                                                       |  23 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libffi-devel-3.0.13-19.el7.x86_64                                                                                                                                               1/1
  Verifying  : libffi-devel-3.0.13-19.el7.x86_64                                                                                                                                               1/1

Installed:
  libffi-devel.x86_64 0:3.0.13-19.el7                                                                                                                                                              

Complete!
[root@ecs-centos7.9 ~]#
[root@ecs-centos7.9 ~]#

重新安装python

[python@ecs-centos7.9 ~]$pyenv install 3.9.18 -vvv
pyenv: /home/python/.pyenv/versions/3.9.18 already exists
continue with installation? (y/N) y

[python@ecs-centos7.9 ~]$cd 3.9.18/
[python@ecs-centos7.9 ~/3.9.18]$ll
total 0
[python@ecs-centos7.9 ~/3.9.18]$jupyter notebook --ip=0.0.0.0 --no-browser    
Traceback (most recent call last):
  File "/home/python/.pyenv/versions/py3918/bin/jupyter-notebook", line 5, in <module>
    from notebook.app import main
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/notebook/app.py", line 20, in <module>
    from jupyterlab.commands import (  # type:ignore[import-untyped]
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyterlab/__init__.py", line 8, in <module>
    from .handlers.announcements import (
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyterlab/handlers/announcements.py", line 15, in <module>
    from jupyterlab_server.translation_utils import translator
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyterlab_server/__init__.py", line 6, in <module>
    from .app import LabServerApp
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyterlab_server/app.py", line 15, in <module>
    from .handlers import LabConfig, add_handlers
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyterlab_server/handlers.py", line 21, in <module>
    from .listings_handler import ListingsHandler, fetch_listings
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyterlab_server/listings_handler.py", line 10, in <module>
    import requests
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/urllib3/__init__.py", line 41, in <module>
    raise ImportError(
ImportError: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips  26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168

[python@ecs-centos7.9 ~/3.9.18]$pip3.9 install urllib3==1.26.15
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting urllib3==1.26.15
  Downloading https://mirrors.aliyun.com/pypi/packages/7b/f5/890a0baca17a61c1f92f72b81d3c31523c99bec609e60c292ea55b387ae8/urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 2.4 MB/s eta 0:00:00
Installing collected packages: urllib3
  Attempting uninstall: urllib3
    Found existing installation: urllib3 2.1.0
    Uninstalling urllib3-2.1.0:
      Successfully uninstalled urllib3-2.1.0
Successfully installed urllib3-1.26.15
[python@ecs-centos7.9 ~/3.9.18]$

[python@ecs-centos7.9 ~/3.9.18]$jupyter notebook --ip=0.0.0.0 --no-browser
[I 2023-11-20 20:25:52.462 ServerApp] Package notebook took 0.0000s to import
[I 2023-11-20 20:25:52.474 ServerApp] Package jupyter_lsp took 0.0114s to import
[W 2023-11-20 20:25:52.474 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-11-20 20:25:52.480 ServerApp] Package jupyter_server_terminals took 0.0050s to import
[I 2023-11-20 20:25:52.480 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-11-20 20:25:52.513 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-11-20 20:25:52.513 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-11-20 20:25:52.513 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-11-20 20:25:52.519 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-11-20 20:25:52.525 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-11-20 20:25:52.531 ServerApp] notebook | extension was successfully linked.
[I 2023-11-20 20:25:52.532 ServerApp] Writing Jupyter server cookie secret to /home/python/.local/share/jupyter/runtime/jupyter_cookie_secret
[I 2023-11-20 20:25:52.787 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-11-20 20:25:52.814 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-11-20 20:25:52.817 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-11-20 20:25:52.818 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-11-20 20:25:52.820 LabApp] JupyterLab extension loaded from /home/python/.pyenv/versions/py3918/lib/python3.9/site-packages/jupyterlab
[I 2023-11-20 20:25:52.820 LabApp] JupyterLab application directory is /home/python/.pyenv/versions/3.9.18/envs/py3918/share/jupyter/lab
[I 2023-11-20 20:25:52.821 LabApp] Extension Manager is 'pypi'.
[I 2023-11-20 20:25:52.824 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-11-20 20:25:52.828 ServerApp] notebook | extension was successfully loaded.
[I 2023-11-20 20:25:52.828 ServerApp] Serving notebooks from local directory: /home/python/3.9.18
[I 2023-11-20 20:25:52.828 ServerApp] Jupyter Server 2.10.1 is running at:
[I 2023-11-20 20:25:52.828 ServerApp] http://ecs-centos7.9:8888/tree?token=0f7e170b738c7b888f024cf3cf266dbce8c3514408738e90
[I 2023-11-20 20:25:52.828 ServerApp]     http://127.0.0.1:8888/tree?token=0f7e170b738c7b888f024cf3cf266dbce8c3514408738e90
[I 2023-11-20 20:25:52.828 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-11-20 20:25:52.832 ServerApp]
    
    To access the server, open this file in a browser:
        file:///home/python/.local/share/jupyter/runtime/jpserver-30284-open.html
    Or copy and paste one of these URLs:
        http://ecs-centos7.9:8888/tree?token=0f7e170b738c7b888f024cf3cf266dbce8c3514408738e90
        http://127.0.0.1:8888/tree?token=0f7e170b738c7b888f024cf3cf266dbce8c3514408738e90
[I 2023-11-20 20:25:52.852 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server

后台运行juypter

[python@ecs-centos7.9 ~/3.9.18]$nohup jupyter notebook --ip=0.0.0.0 --no-browser 2>&1 &
[1] 30479
[python@ecs-centos7.9 ~/3.9.18]$nohup: ignoring input and appending output to ‘nohup.out’

[python@ecs-centos7.9 ~/3.9.18]$ps aux | grep jupyter
python   30479  1.4  5.1 801260 92328 pts/1    Sl   20:31   0:02 /home/python/.pyenv/versions/py3918/bin/python3.9 /home/python/.pyenv/versions/py3918/bin/jupyter-notebook --ip=0.0.0.0 --no-browser
python   30563  0.6  2.9 995152 52836 ?        Ssl  20:33   0:00 /home/python/.pyenv/versions/py3918/bin/python3.9 -m ipykernel_launcher -f /home/python/.local/share/jupyter/runtime/kernel-59d78109-b14e-434d-9e1e-2806b6fc65e9.json

日志文件在当前目录:
[python@ecs-centos7.9 ~/3.9.18]$ll
total 20
-rw------- 1 python python 15694 Nov 20 20:34 nohup.out
-rw-rw-r-- 1 python python   576 Nov 20 20:33 Untitled.ipynb
[python@ecs-centos7.9 ~/3.9.18]$

[python@ecs-centos7.9 ~/3.6.9]$ps aux | grep jupyter
python   30479  0.8  5.1 801260 92328 pts/1    Sl   20:31   0:03 /home/python/.pyenv/versions/py3918/bin/python3.9 /home/python/.pyenv/versions/py3918/bin/jupyter-notebook --ip=0.0.0.0 --no-browser
python   30563  0.2  2.9 995152 52836 ?        Ssl  20:33   0:00 /home/python/.pyenv/versions/py3918/bin/python3.9 -m ipykernel_launcher -f /home/python/.local/share/jupyter/runtime/kernel-59d78109-b14e-434d-9e1e-2806b6fc65e9.json
python   30600  0.5  3.1 315432 55940 pts/1    S    20:36   0:00 /home/python/.pyenv/versions/3.6.9/envs/py369/bin/python3.6 /home/python/.pyenv/versions/py369/bin/jupyter-notebook --ip=0.0.0.0 --no-browser
  • 7
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Pyenv是一个用于管理多个Python版本的工具。它可以让你在同一台机器上安装和切换不同版本Python,而不会相互干扰。下面是使用pyenv安装不同版本Python的步骤: 1. 安装pyenv:首先,你需要在你的机器上安装pyenv。可以通过以下命令在Linux或Mac上使用Homebrew进行安装: ``` brew install pyenv ``` 或者在Windows上使用git进行安装: ``` git clone https://github.com/pyenv/pyenv-win.git $HOME/.pyenv ``` 2. 配置环境变量:安装完成后,需要将pyenv添加到你的环境变量中。在Linux或Mac上,可以通过编辑`~/.bashrc`或`~/.bash_profile`文件,在文件末尾添加以下内容: ``` export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" ``` 然后运行以下命令使配置生效: ``` source ~/.bashrc ``` 或者在Windows上,将`%USERPROFILE%\.pyenv\pyenv-win\bin`添加到系统的环境变量中。 3. 安装Python版本:现在,你可以使用pyenv安装不同版本Python了。可以通过以下命令列出可用的Python版本: ``` pyenv install --list ``` 选择你想要安装版本,然后运行以下命令进行安装,例如: ``` pyenv install 3.9.6 ``` 等待安装完成。 4. 切换Python版本安装完成后,你可以使用以下命令来切换使用不同版本Python: ``` pyenv global 3.9.6 ``` 这将设置全局默认的Python版本为3.9.6。你也可以使用`pyenv local`命令来设置当前目录下的Python版本,或者使用`pyenv shell`命令来设置临时的Python版本。 5. 验证安装:最后,你可以运行以下命令来验证Python版本是否正确切换: ``` python --version ``` 确保显示的版本与你安装版本一致。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值