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
- ‘pip’ is not recognized as an internal or external command
- Why is “MINGW64” appearing on my Git bash?
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- how to get program files x86 env variable?
- Difference between masm32 and masm?
- How can I safely create a nested directory in Python?
- How do I start PowerShell from Windows Explorer?
- Tensorflow import error: No module named ‘tensorflow’
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- How can I install pip on Windows?
- PermissionError: [Errno 13] Permission denied
- What does “@” mean in Windows batch scripts
- Permanently add a directory to PYTHONPATH?
- What are good grep tools for Windows? [closed]
- How to run a PowerShell script
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- 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?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Graphviz’s executables are not found (Python 3.4)
- ‘git’ is not recognized as an internal or external command
- Setting Windows PowerShell environment variables
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Importing modules from parent folder
- Importing modules from parent folder
- How can I safely create a nested directory in Python?
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- How to run a PowerShell script
- Graphviz’s executables are not found (Python 3.4)
- 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
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- Create an empty file on the commandline in windows (like the linux touch command)
- How to remove anaconda from windows completely?
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- “X does not name a type” error in C++
- what is a “dump file” in windows task manager?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- 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?
- How to install pip3 on Windows?
- Using putty to scp from windows to Linux
- How to clear the interpreter console?
- Installing tensorflow with anaconda in windows
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- how to open an mp3 file with c
- Python can’t find my module
- What languages are Windows, Mac OS X and Linux written in?
- Relative paths in Python
- How to get an absolute file path in Python
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- How to get the filename without the extension from a path in Python?
- How to run a makefile in Windows?
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- Python list directory, subdirectory, and files
- Command Prompt “Net View System Error 6118”
- git clone: Authentication failed for
- Open file in a relative location in Python
- How to compile LEX/YACC files on Windows?
- How to run ‘sudo’ command in windows
- Batch script loop
- What is the ‘realtime’ process priority setting for?
- Why am I getting a FileNotFoundError?
- Verify return code: 20 when testing OpenSSL
- Git Bash won’t run my python files?
- How to install xgboost in Anaconda Python (Windows platform)?
- Command ‘ls’ not working in command prompt
- Command line for looking at specific port
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- How to uninstall a Windows Service when there is no executable for it left on the system?
- openssh windows bad owner or permissions
- What is the default password for Postgres
- “X does not name a type” error in C++
- Windows Activator .bat Text
- How To Activate Windows 10
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- how to edit or see the source code for dll files
- What is the difference between Cygwin and MinGW?
- No Module Named ‘_pywrap_tensorflow_internal’
- Text editor to open big (giant, huge, large) text files
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- Relative paths in Python