# Why is python -version not working in cmd prompt?

**URL:** <https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169>\
**Category:** Python Help\
**Created:** [May 3, 2026, 5:09pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169 "2026-05-03T17:09:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![EpicGuy22](https://avatars.discourse-cdn.com/v4/letter/e/c37758/32.png) [@EpicGuy22](https://discuss.python.org/u/EpicGuy22)\
**Post date:** [May 3, 2026, 5:09pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/1 "2026-05-03T17:09:10Z")

</div>

i have python installed but nein work

---

<div class="post-metadata">

**Author:** ![Andrew5057](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/andrew5057/32/35016_2.png) [@Andrew5057](https://discuss.python.org/u/Andrew5057)\
**Post date:** [May 3, 2026, 5:35pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/2 "2026-05-03T17:35:33Z")

</div>

Try two dashes instead of one. If the option is multiple letters, it needs multiple dashes.

---

<div class="post-metadata">

**Author:** ![EpicGuy22](https://avatars.discourse-cdn.com/v4/letter/e/c37758/32.png) [@EpicGuy22](https://discuss.python.org/u/EpicGuy22)\
**Post date:** [May 10, 2026, 4:26pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/3 "2026-05-10T16:26:01Z")

</div>

still im getting

> Python was not found;

---

<div class="post-metadata">

**Author:** ![Locked-chess-official](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/locked-chess-official/32/27037_2.png) [@Locked-chess-official](https://discuss.python.org/u/Locked-chess-official)\
**Post date:** [May 10, 2026, 4:41pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/4 "2026-05-10T16:41:32Z")

</div>

This is due to system path. You need to add the python path to system path.

---

<div class="post-metadata">

**Author:** ![Andrew5057](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/andrew5057/32/35016_2.png) [@Andrew5057](https://discuss.python.org/u/Andrew5057)\
**Post date:** [May 10, 2026, 5:24pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/5 "2026-05-10T17:24:02Z")

</div>

That, or try python3 instead.

---

<div class="post-metadata">

**Author:** ![JoBe](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jobe/32/26961_2.png) [@JoBe](https://discuss.python.org/u/JoBe)\
**Post date:** [May 12, 2026, 4:37am UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/6 "2026-05-12T04:37:21Z")

</div>

When you are using Windows, the command of then is `py`. Try `py –version`, especially if you got Python from the Microsoft store. As others here said though, adding Python to the PATH should make things easier for you later on.

---

<div class="post-metadata">

**Author:** ![c-rob](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/c-rob/32/17261_2.png) [@c-rob](https://discuss.python.org/u/c-rob)\
**Post date:** [May 15, 2026, 10:59am UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/7 "2026-05-15T10:59:01Z")

</div>

Use Windows Control Panel to add the Python.exe to your System Path for your user.

Path: Control Panel \> Edit the System Environment Variables \> on the Advanced tab click Environment Variables button \> In the top pane click “New” button. Add variables for PYTHONPATH and PYTHONHOME.

You probably need to reboot after doing this.

Also when I run Windows Terminal (recommended for Python as it is much more configurable) I always open a batch file I call “addpath.bat” which also adds the python directories to the PATH variable. I think you may have to install Windows Terminal (wt) separately even with Win 11 (which I have).

---

<div class="post-metadata">

**Author:** ![tjwilli58](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tjwilli58/32/31145_2.png) [@tjwilli58](https://discuss.python.org/u/tjwilli58)\
**Post date:** [May 15, 2026, 12:30pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/8 "2026-05-15T12:30:37Z")

</div>

> [@c-rob](#):
>
> You probably need to reboot after doing this.

I’m pretty sure that you just need a new shell to see the changes. A complete reboot is not necessary.

---

<div class="post-metadata">

**Author:** ![c-rob](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/c-rob/32/17261_2.png) [@c-rob](https://discuss.python.org/u/c-rob)\
**Post date:** [May 17, 2026, 1:08pm UTC](https://discuss.python.org/t/why-is-python-version-not-working-in-cmd-prompt/107169/9 "2026-05-17T13:08:32Z")

</div>

That’s good to know. I’m not familiar with Windows internals. But I like to reboot because Win 11 is so bloated and buggy.
