【发布时间】:2012-08-20 23:41:28
【问题描述】:
一直在 windows7 上使用 ActivePython,lxml 似乎没有问题..
我有很多其他第三方包,它们也可以工作。
直到我想在 Web2Py 中使用它。
如果我将它们直接复制到c:/web2py/applications/myApp/modules 中,所有其他的似乎都在工作
使用lxml,看来我需要复制其他东西..
我有一个第三方模块,它像这样导入 lxml:from lxml.etree import tostring
它最终抛出 - No module named lxml.etree
我在 web2py 之外的测试程序运行这两个模块都没有问题。
当我执行pypm files lxml 时,我看到了这个:
%APPDATA%\Python\Python27\site-packages\lxml-2.3-py2.7.egg-info
我还应该将什么与 lxml 目录一起复制到 modules 目录中?
很确定是我做错了,而不是 Web2py,但无法解决..
web2py 版本 = 版本 1.99.7 (2012-03-04 22:12:08) 稳定
【问题讨论】:
标签: python lxml web2py activepython