How to check python installation folder in windows?
- To check the python installation folder in windows follow the below steps.
First create a sample python file with name
pathfile.pyand execute the below code.
import os import sys print(os.path.dirname(sys.executable))
- After execution with command
py pathfile.pyin command prompt we get the path as below.