How to usethe Get-Command Command (Windows PowerShell) in Python
On Windows, you can use PowerShell to find the path of the Python interpreter using the Get-Command
cmdlet.
Steps:
- Open PowerShell.
- Type the command.
Example:
Get-Command python
# or for Python 3
Get-Command python3
Explanation:
- The
Get-Command
cmdlet retrieves all commands installed on the system, including their paths.
Contact Us