为 Windows 的 python 2.7 设置 pyquery
我正在尝试设置 pyquery,但这给我带来了困难。
有 .py 文件 setup.py ,它从 setuptools 导入
我还读过 lxml 可以用来代替那个,我已经安装了 lxml。
任何人都可以指导我进行此安装。我也阅读了此链接
I am trying to setup pyquery,but is giving me a hard time.
There is .py file setup.py , which imports from setuptools
I also read lxml can be used instead of that ,i have installed lxml.
Could anyone guide me with this installation.I also did read this link
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
PyQuery 只是 lxml 的 api 包装器。
安装 lxml 后,您可以轻松安装 pyquery
我猜您的问题发生是因为 setuptools 尝试安装 lxml 但在编译时失败
PyQuery is just an api wrapper for lxml.
Once you get lxml installed you can easily install pyquery
I guess that your problem occur because setuptools try to install lxml and failed at compilation time
将文件夹 Pyquery 添加到 python27/lib/site-packages 中。
现在可以了。
Added the folder Pyquery to to python27/lib/site-packages.
It works now.