被要求以正确的格式更新我的答案 - 先问后答。
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
然后生成
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
最佳答案
http://plone.293351.n2.nabble.com/How-do-I-get-LDAP-working-with-Plone-4-td5510664.html
Plone › 安装、设置、升级
如何让 LXML 与 Plone 4.3 64 位一起工作
构建失败,错误/肯定指向并请求 vcvarsall.bat
感谢 Didakus 的原始发帖 - 2010 年 9 月 8 日回复:LDAP
在 Plone 聊天室找到一些帮助。以下是我为使 LXML 正常工作所做的工作。
- 在驱动器 C:\上安装 Python (v 2.7.4)
- 安装 lxml-3.2.1.win-amd64-py2.7 (C:\Python27\lib\site-packages)
- 使用安装程序安装/已安装 Plone 4.3 (C:\Plone43)
- 编辑 buildout.cfg 并固定 [ver] lxml = 3.2.1
- 在 C:\Plone43\eggs\中创建一个名为 lxml.3.2.1-py2.7.egg 的新文件夹
- 将 C:\Python27\lib\site-packages\lxml-3.2.1-py2.7.egg-info 复制到 C:\Plone43\eggs\lxml-3.2.1-py2.7.egg\并重命名到 EGG-INFO
- 同时将C:\Python27\lib\site-packages\中的lxml文件夹复制到C:\Plone43\eggs\lxml-3.2.1-py2.7.egg\
- 下一份: 文件夹:C:\Python27\lib\site-packages\lxml-3.2.1-py2.7.egg-info 文件夹:C:\Python27\lib\site-packages\lxml 到 C:\Plone43\python\Lib\site-packages
- 启动commandbox并运行bin\buildout
它为我编译。
关于plone - LXML 无法在 Plone 4.3 64 位 (MS Windows) 上安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17323734/