How to find where Python is Installed on Windows?

Dung Do Tien Jul 31 2021 543

Hi Guys,

I just installed Python 3.8 in window 10. How can I get the full path of install Python on my laptop? For example:


How can I find it?

Have 3 answer(s) found.
  • P

    Pablo Humberto Arriola Agudelo Jul 31 2021

    You can do as below with some lines of code:

     import sys
    locate_python = sys.exec_prefix

    Hope it works for you.

  • y

    yaswanth Thamidallapati Jul 31 2021

    I do as below and it worked for me.

     import os
    import sys
    path = os.path.dirname(sys.executable)
  • D

    Deepak M Jul 31 2021

    In the sys package, you can find a lot of useful information about your installation:

     import sys
Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close