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
• 3,050 points
810 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,020 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 20, 2019 in Python by Alia
968 views
0 votes
1 answer

What is the algorithm to find the sum of prime numbers in the input in python

To find the sum of prime numbers ...READ MORE

answered Mar 1, 2024 in Python by Shubh Saxena
1,009 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
643 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, 2020 in Python by Roshni
• 10,480 points
2,235 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

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

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,224 views
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,020 points
4,826 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,020 points
600 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP