Scrapy Installation Tutorials in Pycharn

Source: Internet
Author: User

  In the use of Pycharm installed Scrapy package is encountered a lot of problems. After a toss-up of almost two hours after the installation is finally done. During various Google and Baidu, found all the tutorials are installed using the Command Line window. Find the package you need to install scrapy It's a lot of death. There is no specific installation for pycharm. So here will own installation experience to share, hope to help some pythoner less go some detours (nonsense, the following topic: )

First of all, you must install the Pycharm, and then is the use of the great Pycharm automatic search to install a third-party package, Pycharm can help you find most of the third-party package, do not need you to find and download the internet yourself. He will automatically find the third-party module that matches the Python interpreter you added.

Then I'll tell you where you can use Pycharm to install a third-party package, first open the file in the upper-left corner of Pycharm and find the setting option

When setting is turned on, it is like the selected blue option, and then a third-party package that has already been installed will appear. There is a green plus sign on the right side of the picture that points to the plus sign, and then the following window appears.

then you want to search for any package directly in the search box, the search will automatically help you to select, and then click on the following intall packages OK . The installation succeeds will give you a hint of a green success message, and if the installation fails there will be a red error hint. If the installation has failed, do not worry, the general installation failure is the reason that you want to install the package also requires the support of other packages, so you go to Baidu Google Bai, see what else you need to pack, and then follow the sequence step by step to the line.

Then start installing the module, now that you want to install the Scrapy package, you will have to install it in the following order.

You can do this by installing it from bottom to top.

After the installation, you can happily use the scrapy.

There is one more issue that needs special attention, and this issue is of particular importance. That is, although you have installed Scrapy, you also add your scrapy to the environment variable.

This time I also learned how to add the environment variables of the system (I'm ashamed to say that the Python program has not been written in the command window, so the path of your Python is not added to the environment variable)

Here, by the way, how to add an environment variable (this is for Win7).

Prime Minister Open the properties of the computer, and then click Advanced System Settings,

Then click on the environment variable,

Locate the path marked in the diagram, select then click Edit below, then add a semicolon after the path that appears, and then start adding the path to your Python interpreter, such as C:\Python27, and then continue adding the folder where your scrapy is located (be sure to note the previous add ;) as mine is in H:\Users\heng\AppData\Roaming\Python\Scripts

And then you're done.

And then it's the project that created Scrapy.

In the empty directory, hold down the SHIFT key and right-click, select "Open Command Window Here" and enter the command:

Scrapy Startproject Tutorial

Then you can silently wait for the computer to help you create a scarpy configuration file. Detailed procedures for how to take advantage of the Scrapy configuration file I'm not going to be wordy, there's a great God's summary http://www.jb51.net/article/57183.htm

If there is any mistake or error in this article, you are welcome to correct me.

Welcome reprint, Reproduced please indicate the source.

  

Scrapy Installation Tutorials in Pycharn

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.