Bangpypers Pre-Workshop Setup¶
Feb 22, 2019
A guide to installing a newer version of Python is available here.
We at Bangpypers conduct a lot of workshops and some steps are common for all of them. To that end, this post is meant to serve as guide for people to install Python on Ubuntu and Windows (if required), setting up virtualenv and installing the package(s) germane to the corresponding Workshop.
### Ubuntu
Check your existing version of Python to see if you already have what’s required.
$python --version
$sudo add-apt-repository ppa:jonathonf/python-3.6
Update packages and install Python 3.6 using the following commands:
$sudo apt-get update
$sudo apt-get install python3.6
$sudo apt-get install python3-pip
$sudo apt-get install python3.6-dev
$sudo apt-get install virtualenv
$cd ~
$mkdir twisted_workshop
$cd twisted_wokshop
$virtualenv -p python3.6 venv
$source venv/bin/activate
$pip install twisted (For the Twisted Workshop)
### Windows
Download and install the binary from https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe
C:\Users\abhiram\Desktop>python get-pip.py
Install virtualenv :
C:\Users\abhiram\Desktop>pip install virtualenv
Create a new virtual environment and install Twisted in it :
C:\Users\abhiram\Desktop>virtualenv -p python3.6 venv
C:\Users\abhiram\Desktop>venv/Scripts/activate
C:\Users\abhiram\Desktop>pip install twisted (For the Twisted Workshop)
I hope this helps in setting up the environment so we can get minimize time required in getting started with the meat of the workshop :) If you have any questions, leave them in the comments and I’ll get back to you.
For details related to Bangpypers, check the website and the meetup page.