Ask anything about this post!
Locating the installation path of Python on your Windows system is essential for various tasks such as setting up environment variables or troubleshooting issues. In this guide, I will show you two methods to help you find the Python installation path, first using the Command Prompt (cmd) and the newer terminal.
This classic method involves utilizing Windows' Command Prompt to find where Python is installed.
Press Win + R to open run window, type cmd, and press Enter. In the Command Prompt window, type the following command:
where python
Press Enter, and the system will display the paths where Python is installed.
PS C:\Users\Abhi> where python
C:\Users\Abhi\scoop\apps\python\current\python.exe
C:\Users\Abhi\AppData\Local\Microsoft\WindowsApps\python.exe
The terminal is a powerful scripting environment and newer command-line shell, offering a more modern approach to interacting with your system. If you use the terminal, the following steps will help you find where Python is installed!
Follow the steps below:
You can open Terminal by searching for it in the Start menu and selecting "Terminal"
In the Terminal window, type the following command:
(Get-Command python).Path
Press Enter, and Terminal will reveal the paths where Python is installed.
PS C:\Users\Abhi> (Get-Command python).Path
C:\Users\Abhi\scoop\apps\python\current\python.exe
Both the Command Prompt and Terminal methods are effective ways to find the Python installation path on your Windows system. While the Command Prompt is more traditional, Terminal offers a modern and powerful alternative.
Whether you're troubleshooting an issue, setting up an environment variable, or simply curious about your Python installation, these methods provide you with the information you need. Happy Coding!
Thank you for reading our blog!
We have a Discord community where you can ask questions and get help from the community.
No comments yet. Be the first to share your thoughts!