Install pyquery on windows

I want to install pyquery in windows. But I can not run setup.py install on the command line. Do you have a hint?

+4
source share
4 answers

I assume you have no installed lxml or setuptools

Setuptools http://pypi.python.org/pypi/setuptools/0.6c11

LXML http://pypi.python.org/pypi/lxml/2.2.2

Install them first, and then try again, I just tried that it works correctly.

+3
source

I could not install lxml on windows using pip or easy_install. Complained "Could not find vcvarsall.bat"

Tried installing Cygwin and MinGW, but it's taking too long

found out from raidsan answer about unofficial precompiled Windows binaries http://www.lfd.uci.edu/~gohlke/pythonlibs/ is now installed and working fine

0
source

SIMPLE DECISION OF WORK:

I load the tar file here pyquery-1.2.13.tar.gz ( https://pypi.python.org/pypi/pyquery#downloads )

I extracted their pyquery-1.2.13 folder and then inserted myscript.py into this pyquery-1.2.13 folder in my script, I have these lines at the very top to enable the pyquery module and it works!

import pyquery (this file is located in the pyquery-1.2.13 folder)

from pyquery import *

Done.

0
source

I use miniconda on Windows, and here is how I installed pyQuery:

Download python miniconda from http://conda.pydata.org/miniconda.html (if you need many libraries at once, consider installing anadonda)

Then from the command line, run the following commands:

conda install lxml conda install setuptools 

Take the latest pyQuery source from https://codeload.github.com/gawel/pyquery/zip/master and unzip it to a directory.

Again, from the command line, go to this directory and run:

 python setup.py install 
0
source

All Articles