What is the procedure to find the exact path of python installation in Windows?

0 votes
What is the easiest way to find the path of python installation in windows?
Aug 26, 2019 in Python by Arvind
• 2,980 points
80 views

1 answer to this question.

0 votes

This is a very simple thing to do in python. Have a look at the following lines of code. This will give you the python installation path.

>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
answered Aug 26, 2019 by Neel
• 3,010 points

Related Questions In Python

0 votes
2 answers

what is the procedure to the version of python in my computer?

Execute the following command on your terminal: python ...READ MORE

answered Mar 19, 2019 in Python by Alia
148 views
0 votes
0 answers

what is the procedure to get the hashmap in python?

can you give an example as well? READ MORE

Apr 10, 2019 in Python by Waseem
• 4,540 points
35 views
0 votes
1 answer

What is the Python logic to count the number of capital letters in a file?

Hi, You can use this piece of code, ...READ MORE

answered Jun 26 in Python by Roshni
• 1,990 points
21 views
+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

answered Mar 31, 2018 in Python by anto.trigg4
• 3,440 points
2,319 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,213 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

Is it possible to find the source code of built-in functions of Python?

Since Python is open source you can ...READ MORE

answered Jul 17, 2019 in Python by Neel
• 3,010 points
833 views
0 votes
1 answer

What is the procedure to install python packages in IPython?

You can use the '!' prefix like ...READ MORE

answered Aug 21, 2019 in Python by Neel
• 3,010 points
59 views