In your Python interpreter, type the following commands:
>>> import os >>> import sys >>> os.path.dirname(sys.executable) 'C:\\Python25'
Also, you can club all these and use a single line command. Open cmd and enter following command
python -c "import os, sys; print(os.path.dirname(sys.executable))"
Related Posts:
- Python virtualenv questions
- Python Setup Disabling Path Length Limit Pros and Cons?
- How to exit Python script in Command Prompt?
- Python command not working in command prompt
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- “python” not recognized as a command
- python is not recognized windows 10
- npm ERR! No git binary found in $PATH
- Python not working in the command line of git bash
- Why is “MINGW64” appearing on my Git bash?
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- How can I safely create a nested directory in Python?
- How do I start PowerShell from Windows Explorer?
- PermissionError: [Errno 13] Permission denied
- What does “@” mean in Windows batch scripts
- How to run a PowerShell script
- Graphviz’s executables are not found (Python 3.4)
- ‘git’ is not recognized as an internal or external command
- How do I install and use cURL on Windows?
- Graphviz’s executables are not found (Python 3.4)
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Importing modules from parent folder
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- How to run a PowerShell script
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- How can I open a cmd window in a specific location?
- anaconda – path environment variable in windows
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- Create an empty file on the commandline in windows (like the linux touch command)
- what is a “dump file” in windows task manager?
- How do I run Redis on Windows?
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- How to clear the interpreter console?
- Using putty to scp from windows to Linux
- How to clear the interpreter console?
- how to open an mp3 file with c
- How to get an absolute file path in Python
- How to get the filename without the extension from a path in Python?
- Command Prompt “Net View System Error 6118”
- Open file in a relative location in Python
- How to run ‘sudo’ command in windows
- Batch script loop
- What is the ‘realtime’ process priority setting for?
- Why am I getting a FileNotFoundError?
- Command ‘ls’ not working in command prompt
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- openssh windows bad owner or permissions
- What is the default password for Postgres
- “X does not name a type” error in C++
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- Text editor to open big (giant, huge, large) text files
- Using GNU Scientific Library (GSL) under Windows x64 with MinGW
- Visual C++ executable and missing MSVCR100d.dll
- What is the ASCII Code of ½?
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- Why Local Users and Groups is missing in Computer Management on Windows 10 Home?
- How to force `findstr` to ignore `Cannot open` returns
- Npm Please try using this command again as root/administrator
- Choosing a Windows automation scripting language. AutoIt vs Autohotkey
- How to install PyQt5 on Windows?
- “ImportError: No module named site” on Windows
- sudo command not found on Cygwin
- What is Windows Fabric and how to host services in it?
- starting R: Error: ‘\U’ used without hex digits in character string starting “”C:\U”
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- Windows path in Python
- ‘openssl’ is not recognized as internal or external command
- docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’
- How to grant permission to users for a directory using command line in Windows?
- Curl not recognized as an internal or external command, operable program or batch file
- Is there a Pattern Matching Utility like GREP in Windows?
- Redirecting Output from within Batch file
- How to change pip installation path
- How do you clear the console screen in C?
- What is %0|%0 and how does it work?
- Why do fonts appear jagged in Chrome?
- Can’t start hostednetwork
- How to know/change current directory in Python shell?
- False ‘Sharing Violation’ Xcopy error message
- How does the echo command works in batch programming
- Visual Studio compiles but the exe isn’t there
- Docker hv-sock proxy (vsudd) is not reachable windows
- How do I use spaces in the Command Prompt?
- Need auto-restart script in batch for minecraft server
- How to use random in BATCH script?
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- Error: No module named ‘fcntl’
- How do I force Robocopy to overwrite files?
- Using sys/socket.h functions on windows
- In which cases does program exit with 0x40010004 code?
- Sublime Text from Command Line
- Where do you usually have your DirectX SDK folder?
- What is the difference between \ and \\ in file path
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- Git Bash doesn’t see my PATH
- Best practice for exiting batch file?
- What’s a good (free) visual merge tool for Git? (on windows)
- php exec() is not executing the command