问题
Been asked to update my answer in correct format - Question then Answer.
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\lxml
copying src\lxml\builder.py -> build\lib.win-amd64-2.7\lxml
then generates
running build_ext
building 'lxml.etree' extension
**error: Setup script exited with error: Unable to find vcvarsall.bat**
An error occurred when trying to install lxml 2.3.6. Look above this message for
any errors that were output by easy_install.
While:
Installing.
Getting section zeo.
Initializing part zeo.
Getting distribution for 'lxml==2.3.6'.
Error: Couldn't install: lxml 2.3.6
回答1:
http://plone.293351.n2.nabble.com/How-do-I-get-LDAP-working-with-Plone-4-td5510664.html
Plone › Installation, Setup, Upgrades
How do I get LXML working with Plone 4.3 64-bit
Buildout failed with false/positive pointing to and asking for vcvarsall.bat
With thanks for original posting by Didakus - Sep 08, 2010 re: LDAP
Found some help in the Plone chat room. Here's what I did to get LXML working.
- Install Python (v 2.7.4) on drive C:\
- Install lxml-3.2.1.win-amd64-py2.7 (C:\Python27\lib\site-packages)
- Install/Have Installed Plone 4.3 with the installer (C:\Plone43)
- Edit buildout.cfg and pin [ver] lxml = 3.2.1
- Create a new folder called lxml.3.2.1-py2.7.egg in C:\Plone43\eggs\
- Copy C:\Python27\lib\site-packages\lxml-3.2.1-py2.7.egg-info to C:\Plone43\eggs\lxml-3.2.1-py2.7.egg\ and rename to EGG-INFO
- Also copy the lxml folder in C:\Python27\lib\site-packages\ to C:\Plone43\eggs\lxml-3.2.1-py2.7.egg\
- Next copy: folder: C:\Python27\lib\site-packages\lxml-3.2.1-py2.7.egg-info folder: C:\Python27\lib\site-packages\lxml to C:\Plone43\python\Lib\site-packages
- Start commandbox and run bin\buildout
It compiles for me.
来源:https://stackoverflow.com/questions/17323734/lxml-failed-to-install-on-plone-4-3-64-bit-ms-windows