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

标签 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

最佳答案

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 正常工作所做的工作。

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

它为我编译。

关于plone - LXML 无法在 Plone 4.3 64 位 (MS Windows) 上安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17323734/

相关文章:

plone - xsl :attributes strips the "content"

python - Lxml 和 python : iterate only over existing elements

python - 如何在Python中忽略或传递xpath xml IndexError

Python lxml getpath错误

python - 使用 lxml 解析段落标记的子项时缺少子项

plone - .cpt 模板和 .pt 模板之间有什么区别?

python - Plon/Python 创建用户帐户

plone - Diazo 、参数和受限制的Traverse

plone - 如何将 Plone 中的内容 block 转换为 Diazo 主题

python - lxml 更改 Unicode 字符