imran khan
imran khan

Reputation: 7

Python Bottle Micro-Web Framework

Ok, so I've gone to the http://bottlepy.org/docs/dev/ website, and tried following their instructions for including the bottle.py framework, and do the little test web service test they have on the site.

The problem I'm having is that the python script does not recognize the "from bottle import route, run, template", so the code does not execute. I can't find anything to show HOW to properly include the bottle framework.

I've gone to YouTube, multiple posts on StackOverflow, and I'm not sure what I'm doing wrong.

Some info: I'm using Eclipse with PyDev, and I'm running on Windows 7 64 bit. Also, I write in other languages (Java, C#, Objective-C) but I'm new to Python, so maybe I'm making a newbie mistake...?

Upvotes: 0

Views: 433

Answers (2)

Dirk Calloway
Dirk Calloway

Reputation: 2619

If easy_install bottle didn't work, try pip install bottle.

Upvotes: 0

earl
earl

Reputation: 41775

You need to install the Botte package. Citing the "Download and Install" section from the Bottle web site:

Install the latest stable release via PyPi (easy_install -U bottle) or download bottle.py (unstable) into your project directory.

Upvotes: 2

Related Questions