e.g., how can I find out that the executable has been installed in “/usr/bin/python” and the library files in “/usr/lib/python2.6”?
e.g., how can I find out that the executable has been installed in /usr/bin/python
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
distutils.sysconfig is the module that “provides access to Python’s low-level configuration information”. The get_python_lib function, in particular, gives “the directory for either the general or platform-dependent library installation”, depending on its arguments.
However,
sys.executableis not exposed by saidsysconfigmodule — it’s only in thesysmodule.