Home > Backend Development > Python Tutorial > Install Scrapy Tutorial

Install Scrapy Tutorial

巴扎黑
Release: 2018-05-18 11:21:09
Original
2303 people have browsed it

Scrapy is a web crawler framework based on python. It can crawl information from the network and is a good way to obtain data. So I wanted to install it and take a look.

Enter its official website, the installation introduction page

There are three installation methods, one is from pip, one is from source code compilation, and the other is from conda

according to Previous knowledge, pip is already a package management tool integrated in python. It is the simplest and clearest. I ignored the sentence in the official website introduction interface

Note that sometimes this may require solving compilation issues for some Scrapy dependencies depending on your operating system

As a result, many errors were reported during the compilation phase, and one after another was solved.

Then I gave up and compiled from the source code. Just like pip, there were a lot of compilation errors.

There is no other way, so I went to see conda and downloaded a miniconda, which cost more than 60MB. After careful study, the results are really cool.

Perhaps python has also noticed that its package needs to be compiled after downloading it. Compilation needs to rely on the environment configuration of its own OS, which often causes errors.

miniconda is an integrated environment that has already installed python. It is equivalent to downloading and installing miniconda, which means downloading the basic python core program. Then you can use the conda command to download the package that conda has compiled. Make function extensions. That is to say, the scrapy package and the lxml, twisted and other compiled packages it depends on have been compiled. Then just download it and use it directly.

The above is the detailed content of Install Scrapy Tutorial. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template