# How to switch form python 2.xy to 3 in VSCode

**URL:** <https://discourse.jupyter.org/t/how-to-switch-form-python-2-xy-to-3-in-vscode/7883>\
**Category:** General\
**Created:** [February 10, 2021, 3:50pm UTC](https://discourse.jupyter.org/t/how-to-switch-form-python-2-xy-to-3-in-vscode/7883 "2021-02-10T15:50:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpfan2099](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/wpfan2099/32/3524_2.png) [@wpfan2099](https://discourse.jupyter.org/u/wpfan2099)\
**Post date:** [February 10, 2021, 3:50pm UTC](https://discourse.jupyter.org/t/how-to-switch-form-python-2-xy-to-3-in-vscode/7883/1 "2021-02-10T15:50:11Z")

</div>

how to switch form python 2.xy to 3 in VSCode

i tried to do this with this code - pip install python3

which does not work at all

![image](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/9/9d653ffe16bd862136f76261667df1e7505f9a82.png)

note: i run jupyter in vscode - so i guess that if i want to run jupyternotes with python 3 then i have to add python 3 at once.
