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 in Python by Arvind
• 2,960 points
17 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 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 in Python by Alia
42 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 in Python by Waseem
• 4,480 points
12 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,420 points
1,351 views
0 votes
1 answer

What is the use of raw_input function in Python?

raw_input fuction is no longer available in ...READ MORE

answered May 2, 2018 in Python by aayushi
• 750 points
95 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 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 238 views
+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 in Python by Neel
• 3,010 points
22 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 in Python by Neel
• 3,010 points
8 views