[root@master ~]# python3.7 -m ipykernel install --name 'Python37'
Installed kernelspec Python37 in /usr/local/share/jupyter/kernels/python37
[root@master ~]# jupyter-kernelspec list
Available kernels:
ir /root/.local/share/jupyter/kernels/ir
java /share/apps/platform/ai/py36/3_6_9/share/jupyter/kernels/java
python3 /share/apps/platform/ai/py36/3_6_9/share/jupyter/kernels/python3
python37 /usr/local/share/jupyter/kernels/python37
[root@master ~]#
```
Now, i have opened jupyter browser and check the kernels and seen the below notebooks
However, when i run the Python3 notebook,check the version,it showing my python version as python 3.6.9
Then i run the Pyhton37 notebook, check the version,
it is getting error as No Kernel!!
Finally i check the jupyterhub logs
```
Aug 17 21:37:28 master jupyterhub: [I 2020-08-17 21:37:28.767 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (2/5), new random ports
Aug 17 21:37:28 master jupyterhub: /share/apps/platform/ai/py37/3_7_6/bin/python3.7: error while loading shared libraries: libpython3.7m.so.1.0: cannot open sha
red object file: No such file or directory
Aug 17 21:37:29 master jupyterhub: [I 2020-08-17 21:37:29.557 SingleUserNotebookApp log:174] 200 GET /user/zain/api/terminals?1597680450116 (za...@192.168.43.8) 8.74ms
Aug 17 21:37:31 master jupyterhub: [I 2020-08-17 21:37:31.791 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (3/5), new random ports
Aug 17 21:37:31 master jupyterhub: /share/apps/platform/ai/py37/3_7_6/bin/python3.7: error while loading shared libraries: libpython3.7m.so.1.0: cannot open sha
red object file: No such file or directory
Aug 17 21:37:32 master jupyterhub: [I 2020-08-17 21:37:32.608 SingleUserNotebookApp log:174] 200 GET /user/zain/api/contents/?content=1&1597680453144 (zain@192.
168.43.8) 30.67ms
Aug 17 21:37:32 master jupyterhub: [I 2020-08-17 21:37:32.813 SingleUserNotebookApp log:174] 200 GET /user/zain/api/sessions?1597680453366 (za...@192.168.43.8) 7 .15ms
Aug 17 21:37:32 master jupyterhub: [I 2020-08-17 21:37:32.866 SingleUserNotebookApp log:174] 200 GET /user/zain/api/kernels?1597680453435 (za...@192.168.43.8) 3. 78ms
Aug 17 21:37:33 master jupyterhub: [I 2020-08-17 21:37:33.212 SingleUserNotebookApp log:174] 200 GET /user/zain/metrics?1597680453751 (za...@192.168.43.8) 28.86m s
Aug 17 21:37:33 master jupyterhub: [I 2020-08-17 21:37:33.343 SingleUserNotebookApp log:174] 200 GET /user/zain/metrics?1597680453875 (za...@192.168.43.8) 31.66m s
Aug 17 21:37:34 master jupyterhub: [I 2020-08-17 21:37:34.815 SingleUserNotebookApp restarter:110] KernelRestarter: restarting kernel (4/5), new random ports
Aug 17 21:37:34 master jupyterhub: /share/apps/platform/ai/py37/3_7_6/bin/python3.7: error while loading shared libraries: libpython3.7m.so.1.0: cannot open sha
red object file: No such file or directory
Aug 17 21:37:37 master jupyterhub: [W 2020-08-17 21:37:37.836 SingleUserNotebookApp restarter:100] KernelRestarter: restart failed
Aug 17 21:37:37 master jupyterhub: [W 2020-08-17 21:37:37.837 SingleUserNotebookApp kernelmanager:135] Kernel 448a56bf-42a3-4718-a126-26f5cf5c0d37 died, removin
g from map.
Aug 17 21:37:38 master jupyterhub: [I 2020-08-17 21:37:38.284 SingleUserNotebookApp log:174] 200 GET /user/zain/metrics?1597680458811 (za...@192.168.43.8) 31.79m s
```
Actually, my Python installation directory structure as below and python 3.6.9 is my default python version(added python 3.6.9 to ~/.bashrc)
```
[root@master ai]# tree -L 3
.
├── py27
│ └── 2_7_16
│ ├── bin
│ ├── etc
│ ├── include
│ ├── lib
│ └── share
├── py36
│ └── 3_6_9
│ ├── bin
│ ├── etc
│ ├── include
│ ├── lib
│ └── share
└── py37
└── 3_7_6
├── bin
├── include
├── lib
└── share
20 directories, 0 files
[root@master ai]#
```
Please guide me to resolve this issue.
Regards,
Zain