How to install Grab framework on Windows 10 for Python 3.5?

I ask for detailed instructions with the indication of the directories for unpacking files and explanations about which window to enter the installation commands. I tried in Shell, python.exe and cmd.

UPD. When you run the standard test runtest.py from the root grab, an error is displayed :

grab\test\util.py, line 5, from test_server import TestServer no module named 'test_server' 
  • Гуглил, все мои попытки установить что-либо не увенчались успехом . Tell in detail what you tried to do and what result did you get? And then suddenly we will lose time, offering you to do the same. - Nick Volynkin
  • But generally pip install mypackagename should work ... - Nick Volynkin

2 answers 2

Have you tried?

  1. Install python , pip .
  2. Run cmd.exe .
  3. With the path/to/your/pip-installation/pip.exe install grab (insert your respective paths) install the grab .

For example, on Windows 7 , which happened to be nearby, it’s done like this: C:\Python34\Scripts\pip.exe install grab

PS: as mentioned above, a more civilized way is editing the PATH variable.

  • I did about the same, only in the command line I used the chdir command to change the folder. But there were new problems. First of all, I decided to update pip, but an access error popped up, although I am an admin. Reinstalled Python to another location, but now an error occurred during LXML installation: 'unable to find vcvarsall.bat' - pachvo
  • @pachvo It was not necessary to reinstall something, because you did not have access, this is a bad way. It was necessary to first understand one problem, and not generate new ones. LXML: 'unable to find vcvarsall.bat' error LXML: 'unable to find vcvarsall.bat' indicates that pip cannot find the compiler, Microsoft Visual C++ , most likely. Do you have it installed? - approximatenumber
  • @pachvo read the answers here with a similar problem, at least for familiarization with what is happening. - approximatenumber
  • I suppose not. Installed Visual Studio 2015, it should be the same. But in it, as I understand it, there is no pip - pachvo
  • one
    I installed wheel and installed lxml with it from here: lfd.uci.edu/~gohlke/pythonlibs/#lxml Grab was also installed, but when I run the test, I get an error: text \ util.py, line 5, from test_server import TestServer no module named 'test_server' - pachvo

Run cmd and write pip install grab .

If pip does not find, in the variable paths in PATH add the path to the folder with python, for example: C:\Python34\;C:\Python34\Scripts; . After that, you need to restart cmd and repeat the command, if the paths to pip.exe are correct, it will work.