I am trying to install lxml on OS X 10.6 using Python 2.7a3. However I am receiving an error during the install setup: ImportError: cannot import name _config_vars
I have put the terminal output here.
Thanks.
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.
You’re using an alpha release of Python 2.7.0, an alpha release for which
setuptools, which is used by lxml’ssetup.py, doesn’t work. Setuptools relies on an implementation detail ofdistutils.sysconfig(the_config_varsattribute) that was changed in the early Python 2.7 alpha releases, and reverted later in the release process (to un-break setuptools, in all likelyhood.)It’s a good idea to install alpha releases to test if your own software works in the newer Python version, but you should not keep using them after newer versions are released, and certainly not after the final release has been made. In this case, two more patchreleases were made later; you should really install those instead.