You may prepare a Linux VM on laptop using VirtualBox.
For participants at Python 101 + Web Scraping on Python workshop, alternatively you can download a VirtualBox image from here.
Downloading software.
- Download Oracle VM VirtualBox
- Download Ubuntu Server 16.04.02 LTS 64-bit
- How to verify Ubuntu ISO image
- $ md5 ubuntu-16.04.2-server-amd64.iso
MD5 (ubuntu-16.04.2-server-amd64.iso) = 2bce60d18248df9980612619ff0b34e6
- Optional Download JetBrains PyCharm Community Edition
After we created a VM successfully, we update installed software packages and installs other require program as root user.
$ sudo su –
$ apt update; apt upgrade
$ apt install virtualenv python3-pip libssl-dev
$ exit
As normal user:
pyconhk@ubuntu$ mkdir ~/env
pyconhk@ubuntu$ virtualenv –python=python3 ~/env/scrapy
pyconhk@ubuntu$ source ~/env/scrapy/bin/activate
(scrapy) pyconhk@ubuntu$ pip3 install scrapy