Windows Win7 Configuration Pyspider

Source: Internet
Author: User
the entire Pyspider packaged environment downloads the following address http://download.csdn.net/detail/zengraoli/9620540

First make sure you install the python2.7 (32 bit, because 64 bits use pyspider some bugs)

then install Easy_install (not required)

Download Address: Https://pypi.python.org/pypi/ez_setup Unpack Easy_install Install package, go to folder, execute Python ez_setup.py


Install pip similarly

Download Address: Https://pypi.python.org/pypi/pip extract PIP installer package, go to folder, execute Python setup.py install


Configure environment Variables

Point: C:\Python27\Scripts


Install lxml-2.2.8.win-amd64-py2.7

Double-click to install

Download: https://pypi.python.org/pypi/lxml/2.2.8

If Python version 2.7 required appears, which is not found in the registry

Install needs to copy the following to the file register.py (new to anywhere), using Python to execute

# script to register Python 2.0 or later-for-with-Win32all # and other extensions that require Python registry Setti NGS # Written by Joakim Loew for Secret Labs Ab/pythonware # Source: # Http://www.pythonware.com/products/works/arti Cles/regpy20.htm # Modified by Valentine Gogichashvili as described in http://www.mail-archive.com/ distutils-sig@python.org/msg10512.html Import sys from _winreg import * tweak as necessary version = sys.version[: 3] InstallPath = Sys.prefix Regpath = "software\\python\\pythoncore\\%s\\"% (version) Installkey = "InstallPath" Python Key = "Pythonpath" Pythonpath = "%s;%s\\lib\\;%s\\dlls\\"% (InstallPath, InstallPath, InstallPath) def RegisterPy
            (): Try:reg = Openkey (HKEY_CURRENT_USER, Regpath) except EnvironmentError as E:try: reg = CreateKey (HKEY_CURRENT_USER, Regpath) SetValue (Reg, Installkey, REG_SZ, InstallPath) Setvalu
       E (Reg, Pythonkey, REG_SZ, Pythonpath)     Closekey (REG) Except:print "* * * Unable to register!"
        return print "---Python", version, "are now registered!" return if (QueryValue (Reg, installkey) = = InstallPath and QueryValue (Reg, pythonkey) = = Pythonpath): C
        Losekey (reg) print "= = = Python", version, "is already registered!"
    Return Closekey (REG) Print "* * * Unable to register!"
 
Print "* * * * You probably have another Python installation!" if __name__ = = "__main__": Registerpy ()

If you do not install, skip directly to the next installation Pyspider the following problems occur:



Configure PHANTOMJS

Copy the Phantomjs.exe to the python27\scripts.


Install Pyspider

Pip Install Pyspider



start Background

Pyspider all hint error:

C:\users\administrator>pyspider all
Traceback (most recent called last):
  File "C:\Python27\Scripts\ pyspider-script.py ", line 5, in <module>
    pkg_resources import load_entry_point
  File" C:\Python27\ Lib\site-packages\distribute-0.6.14-py2.7.egg\pkg_resources.
Py ", line 2671, in <module>
    working_set.require (__requires__)
  File" C:\Python27\lib\site-packages\ Distribute-0.6.14-py2.7.egg\pkg_resources.
Py ", line 654, in require
    needed = Self.resolve (parse_requirements (requirements))
  File" C:\Python27\lib\ Site-packages\distribute-0.6.14-py2.7.egg\pkg_resources.
Py ", line 552, in resolve
    raise Distributionnotfound (req)
pkg_resources. distributionnotfound:six>=1.5.0

That's because we didn't install distribute.

Pip Install-u Distribute

After installation, you can see the following information


Configure and view tasks in the browser

Http://localhost:5000/


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.