tip: interactive python from cygwin when using windows python install

Remember to use the ‘-i’ flag when starting an interactive python session from cygwin if you’ve installed python with a windows installer.

cygwin session (bad):

cygwin session (good):

I run windows on a couple of computers at work, and I also use cygwin.
I usually install python on its own, using one of the windows installers (for instance, ActivePython), but often call it from cygwin. Especially when I want to open an interactive python session just to try something out, verify some syntax, etc.

It’s not that big of a deal to remember to use ‘-i’. However, before I figured out this fix, I wasted a lot of time trying to get around it.

If you like this…

Get notified of new posts, delivered to your inbox. No spam. Not very frequent.

Comments

Leave a Reply