# JupyterHub Terminal shows old version of Python (version 2) However, SSH terminal shows correct version

**URL:** <https://discourse.jupyter.org/t/jupyterhub-terminal-shows-old-version-of-python-version-2-however-ssh-terminal-shows-correct-version/3969>\
**Category:** JupyterHub\
**Tags:** how-to\
**Created:** [April 13, 2020, 5:16am UTC](https://discourse.jupyter.org/t/jupyterhub-terminal-shows-old-version-of-python-version-2-however-ssh-terminal-shows-correct-version/3969 "2020-04-13T05:16:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubhamyadav](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/shubhamyadav/32/1872_2.png) [@shubhamyadav](https://discourse.jupyter.org/u/shubhamyadav)\
**Post date:** [April 13, 2020, 5:16am UTC](https://discourse.jupyter.org/t/jupyterhub-terminal-shows-old-version-of-python-version-2-however-ssh-terminal-shows-correct-version/3969/1 "2020-04-13T05:16:33Z")

</div>

Hi,

My organization have JupyterHub 0.8.1 installed on servers. I’m facing a strange problem with wrong python version on JupyterHub notebook.

At server there are 2 python installed (v2.7.5 and v3.6.4). Whenver I type “python” on bash screen it gives me 3.6.4 version and when typed “python2” it gives out v2.7.5 which is an expected behavior.

However at JupyterHub UI level, When I am selecting **Files -\> New -\> Terminal** and typed in “python”, it gives out 2.7.5. Don’t know from where it is picking up, i have checked kernel.json file which tells version 3 as configuration so not really sure from where its picking up old version. (see snapshot below)

**Can someone help me understanding this ? Thanks**

Images:  
At JupyterHub UI - python command shows 2.7.5  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/2/286a7b30fabbf5a538a90c5e0ae09589bbb01a64.png)

---

<div class="post-metadata">

**Author:** ![1kastner](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/1kastner/32/1537_2.png) [@1kastner](https://discourse.jupyter.org/u/1kastner)\
**Post date:** [April 13, 2020, 6:49am UTC](https://discourse.jupyter.org/t/jupyterhub-terminal-shows-old-version-of-python-version-2-however-ssh-terminal-shows-correct-version/3969/2 "2020-04-13T06:49:44Z")

</div>

What does happen when you type `python3`? Does the right Python show up? I guess they used conda for the setup - can you confirm this? Or did they do it through tools like pip? You can see that when you start the Python interpreter because now it says something like [GCC …] in the brackets but the Anaconda version puts some own advertisement in there.

One difference I can see is that in the window below you run a shell and in the text above you mention a bash. So maybe it is about how and when environment details are loaded.

---

<div class="post-metadata">

**Author:** ![kevinsuedmersen](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/kevinsuedmersen/32/4209_2.png) [@kevinsuedmersen](https://discourse.jupyter.org/u/kevinsuedmersen)\
**Post date:** [April 19, 2021, 6:53pm UTC](https://discourse.jupyter.org/t/jupyterhub-terminal-shows-old-version-of-python-version-2-however-ssh-terminal-shows-correct-version/3969/3 "2021-04-19T18:53:55Z")

</div>

Facing a very similar problem here ([Notebook based on jupyter/all-spark-notebook docker image not picking up custom python version - Stack Overflow](https://stackoverflow.com/questions/67152798/notebook-based-on-jupyter-all-spark-notebook-docker-image-not-picking-up-custom)). Would be very interested into the solution.
