LXML无法在Plone 4.3 64位上安装(MS Windows)

时间:2013-06-26 15:03:13

标签: plone lxml

被要求以正确的格式更新我的答案 - 问题然后回答。

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

1 个答案:

答案 0 :(得分:2)

http://plone.293351.n2.nabble.com/How-do-I-get-LDAP-working-with-Plone-4-td5510664.html

Plone>安装,设置,升级

如何让LXML与Plone 4.3 64位一起使用

Buildout失败,错误/肯定指向并要求vcvarsall.bat

感谢Didakus的原始发布 - 2010年9月8日re:LDAP

在Plone聊天室找到了一些帮助。以下是我为使LXML工作所做的工作。

  1. 在驱动器C:\
  2. 上安装Python(v 2.7.4)
  3. 安装lxml-3.2.1.win-amd64-py2.7(C:\ Python27 \ lib \ site-packages)
  4. 使用安装程序安装/安装Plone 4.3(C:\ Plone43)
  5. 编辑buildout.cfg和pin [ver] lxml = 3.2.1
  6. 在C:\ Plone43 \ eggs \
  7. 中创建一个名为lxml.3.2.1-py2.7.egg的新文件夹
  8. 将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
  9. 同时将C:\ Python27 \ lib \ site-packages \中的lxml文件夹复制到C:\ Plone43 \ eggs \ lxml-3.2.1-py2.7.egg \
  10. 下一份: 文件夹: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
  11. 启动命令框并运行bin \ buildout
  12. 它为我编译。