Skip to main content

Posts

Showing posts from April, 2021

Installing Scrapy With Pyenv (Linux)

If you don't already know what Scrapy is, this post won't tell you. This post will tell you how to install Scrapy. Here's what this post contains: 1. Installing and working on Python's latest version on Linux 2. Installing Pyenv 3. Installing Scrapy Installing and working on Python's latest version on Linux Scrapy would require Python 3.6+. Default Python version on a linux distro is most likely Python 2.7. To work with Scrapy, you'd need to install a compatible version.  You can easily install python using the standard sudo apt install and commands of the likes, or you can download and build it, but it's not that simple: Running projects on a latest Python version on Linux is tough. Why? Because: 1. System-wide Python 2.7 The system-wide Python 2.7 is used by several of system's applications/programs. To keep them working as they do, the system Python needs to continue being the same, forever. So, you cannot replace it with any of the latest Python 3 ve...