سؤال

I'm trying to learn SimpleCV, and in it's tutorials it says to display an image in the browser, use

img.show(type="browser")

Whenever I do this, my browser leads me to localhost:8080, and the page will not load. How can I start a simple server in Python so that the page will load?

هل كانت مفيدة؟

المحلول

Try calling import webbrowser from the shell. If it fails you need to install the library (pip install or easy_install).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top