[Scrapy]Windows平台安装

【测试环境】

windows 7 x86 sp1 en ult

【推荐方法】

1.Connect Internet

2.Download ActivePython-2.7.8.10-win32-x86.msi (Include Pywin32 & pip) from http://www.activestate.com/activepython/downloads.

3.Add Environment Variables PATH:   ;C:\Python27\;C:\Python27\Scripts\;     

4.Reopen CMD

5.Install Scrapy:    pip install Scrapy

============================================================

以下为官方推荐的步骤:

http://doc.scrapy.org/en/latest/intro/install.html

Windows

    Install Python 2.7 from http://python.org/download/

    You need to adjust PATH environment variable to include paths to the Python executable and additional scripts. The following paths need to be added to PATH:

    C:\Python27\;C:\Python27\Scripts\;

    To update the PATH open a Command prompt and run:

    c:\python27\python.exe c:\python27\tools\scripts\win_add2path.py

    Close the command prompt window and reopen it so changes take effect, run the following command and check it shows the expected Python version:

    python --version

    Install pywin32 from http://sourceforge.net/projects/pywin32/

    Be sure you download the architecture (win32 or amd64) that matches your system

    Install pip from https://pip.pypa.io/en/latest/installing.html

    Now open a Command prompt to check pip is installed correctly:

    pip --version

    At this point Python 2.7 and pip package manager must be working, let’s install Scrapy:

    pip install Scrapy


你可能感兴趣的:(其他类别)