Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Python Real time Applications with Storm

You're reading from   Building Python Real time Applications with Storm Learn to process massive real-time data streams using Storm and Python—no Java required!

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781784392857
Length 122 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Installing Petrel

Let's set up our Python development environment. We assume here that you have already followed the instructions in Chapter 1, Getting Acquainted with Storm, to install Storm 0.9.3:

  1. First, we need to install virtualenv, a tool for managing Python libraries. On Ubuntu, simply run this command:
    sudo apt-get install python-virtualenv
  2. Next, we create a Python virtual environment. This provides a way to install Python libraries without requiring root access to the machine and without interfering with the system's Python packages:
    virtualenv petrel

    You will see something like the following output:

    New python executable in petrel/bin/python
    Installing distribute.............................................................................................................................................................................................done
  3. Next, run this command to activate the virtual environment. Your shell prompt will change to include the virtualenv name, indicating...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image