Last active
July 21, 2024 07:27
-
-
Save BoQsc/475e9cf16d5686e93c7a0099c5e87bc4 to your computer and use it in GitHub Desktop.
How to find the python executable on Windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
python -c "import sys; print(sys.executable)" | |
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
FOR /F "delims=" %%I IN ('python -c "import sys; print(sys.executable)"') DO SET PYTHON_PATH=%%I | |
ECHO Python executable path is: %PYTHON_PATH% | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment