Scrapy Tutorial #4: How To Install Scrapy On Windows

Table of Contents

Introduction:

This is the #4 post of my Scrapy Tutorial Series, in this Scrapy tutorial, I will talk about how to install scrapy on Windows. You can use this guide helps you install Scrapy on Win 7, Win 8 or Win 10.

Python Version

The python version of your env we usually talk about is the version number of the Python interpreter.

Short version: Python 2.x is legacy, Python 3.x is the present and future of the language

If you do not have a solid reason to use python 2, just embrace Python 3, which is the present and future of python. In this tutorial, we would use python3 as our python version, so I would show you steps how to install Scrapy on Windows with Python3. If you still prefer python2, just remember to modify the command

Quick way to install Scrapy on Windows

First, go to home page of anaconda to download anaconda. Remember to choose the right version based on the platform and python version. Here we need to download the version which is for windows and Python 3.

All settings can stay with the default, after the installation end, click Start menu/Anaconda/Acaconda Prompt to enter the prompt, we can check the python version here.

As you can see, now python3 has been installed on your Windows, if you are in python shell, you should type exit() or press Ctrl + d to exit the shell. next, we will install Scrapy. Anaconda has a command to help you get this job done quickly.

conda install -c conda-forge scrapy

Now scrapy has been successfully installed. If you want to create a Python 2 environment to run Scrapy, you can also check this official doc

Some notes about install Scrapy on Windows

  1. You can indeed start to learn Scrapy on Windows, but it is hard to use windows to play with Python because you might need much time dealing with other dependency problems. So if you can not get the job done quickly, you might need to think about using some Linux version such as Ubuntu. You can start in this way, install a virtual machine such as VirtualBox which is free and good to go, then install Ubuntu inside it. It might need some time for you to learn the shell commands at first, but you will benefit from that in the end.

  2. Some articles online trying to teach people to install python, modify PATH env, I must say this method is very complex and it might fail on another windows version, so try to use anaconda, which would save you a lot of time.

Launch Products Faster with Django

SaaS Hammer helps you launch products in faster way. It contains all the foundations you need so you can focus on your product.

Michael Yin

Michael is a Full Stack Developer from China who loves writing code, tutorials about Django, and modern frontend tech.

He has published some ebooks on leanpub and tech course on testdriven.io.

He is also the founder of the AccordBox which provides the web development services.

Django SaaS Template

It aims to save your time and money building your product

Learn More

Hotwire is the default frontend solution shipped in Rails, this book will teach you how to make it work with Django, you will learn building modern web applications without using much JavaScript.

Read More
© 2018 - 2024 AccordBox