Python Scrapy installs the incurable diseases record

Source: Internet
Author: User
Tags python scrapy

Yesterday installed scrapy all normal, debug the Bbsspider case (see above), today boot because of frozen restore, the hint can not find Python27.dll, re-installed python2.7,

Use Easy-install scrapy tip error:pkg_resources. DISTRIBUTIONNOTFOUND:PYASN1

After Baidu, said is need to reinstall Distribut package, installation steps are as follows:

    • Download Distribution:https://pypi.python.org/pypi/distribute
    • CD distribution-0.7.3/
    • sudo python setup.py install

This way we can download all the installed Python components correctly by running Easy_install.

Rerun Easy-install scrapy, tip error:error:setup script exited with Error:microsoft Visual C + + 9.0 is required (Una

ble to find Vcvarsall.bat). Get it from Http://aka.ms/vcpython27

Download C + + compiler for Python support library from Microsoft http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266

After installation, rerun Easy-install scrapy, error:fatal error C1083:cannot open include file: ' Openssl/aes.h ': No such file or Directo Ry

It may be that OpenSSL is not installed.

There's a post on the web. Python installation of third-party components an error generally occurs because:

so many installation errors, one is not according to the requirements of the Guide, check and make up the pre-requisite, the second is the use of Easy_ Install and source setup.py, have encountered the C compiler incompatibility problem, and PIP can be installed smoothly, later with Pip, and do not have to spend time looking for resources everywhere,


Use python2.7 pip to install scripy again, error;

Remove python2.7 installation folder, reinstall python2.7.9, error;

Select Repair, the recovered folder does not have a script directory;

Remove error;

Download the official pytho2.7.10, upgrade the installation, success.

Run pip install scrapy, error.

To collapse, but also can not be happy to play, but also the hand owed, what the ice system.

Unload 2.7.10, reinstall, run Pip2.7.exe install Scrapy, finally succeeded, the above may be downloaded time expired;

Run Scrapy crawl Bbsspider again, error:

exceptions. Importerror:no module named Win32API

Using Easy_install Pywin32, error:

D:\python27\scripts>easy_install.exe Pywin32

Searching for pywin32reading https://pypi.python.org/simple/pywin32/Reading http://sf.net/projects/pywin32Reading Http://sourceforge.net/project/showfiles.php?group_id=78018Reading https://sourceforge.net/projects/pywin32/ Files/pywin32/no Local Packages or download links found for pywin32error:could don't find suitable distribution for Require Ment.parse (' Pywin32 ')

Endure, I download EXE installation package is not yet?

Install Pywin32-214.win32-py2.7.exe;

Run again Scrapy drawl Bbsspider, became;

Victory is hard to come by.

For the above reference, I hope to see this blog post of small partners can also less detours.

Python Scrapy installs the incurable diseases record

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.