Windows7 installation Scrapy

Source: Internet
Author: User

# #windows7 Install scrapy##

1. Open the Cmd.exe input command:

    C:\Users\admin>python    先看是否已经安装python,没有就安装python,此处省略安装python。

2. If Python is already installed, see if PIP is already installed

    C:\Users\admin>pip
a. 没有就去下载pip    网址如下:https://pypi.python.org/pypi/pip#downloads    下载这个压缩包:pip-9.0.1.tar.gz (md5, pgp)b. 解压到指定目录,进入pip-9.0.1目录,输入此命令    python setup.py installc. 如果出现以下错误:    Traceback (most recent call last):        File "setup.py", line 31, in <module>          from setuptools import setup, find_packages      ImportError: No module named setuptools  d. 就安装setuptools:    网址:https://pypi.python.org/pypi/setuptools    下载这个压缩包:setuptools-38.5.2.zip (md5)f. 解压到指定目录,进入setuptools-38.5.2目录,输入此命令    python setup.py installg. 如果出现以下错误:    running build_ext        building ‘twisted.test.raiser‘ extension        error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual    C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools    网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#twistedh. 下载二选一:            Twisted?17.9.0?cp36?cp36m?win_amd64.whl(看系统位数下载)            Twisted?17.9.0?cp36?cp36m?win32.whl(看系统位数下载)

3. Installing Scrapy

    C:\Users\admin>pip install Scrapy    成功后提示:    Installing collected packages: Scrap    Successfully installed Scrapy-1.5.0

4. If you run Scapy Crawl quotes "Quotes is the project name" error, install Pypiwin32

     C:\Users\admin>pip install pypiwin32

5. Run again and it will succeed

Windows7 installation Scrapy

Related Article

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.