unsubscribe On May 17, 2013, at 6:00 AM, tutor-requ...@python.org wrote:
> Send Tutor mailing list submissions to > tutor@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/tutor > or, via email, send a message with subject or body 'help' to > tutor-requ...@python.org > > You can reach the person managing the list at > tutor-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Tutor digest..." > > > Today's Topics: > > 1. Re: Pygraphics crashed (eryksun) > 2. Re: Python Idle Crashing (Peter Otten) > 3. Re: Can't install latest PIL (Jim Mooney) > 4. Re: Can't install latest PIL (eryksun) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 17 May 2013 00:56:29 -0400 > From: eryksun <eryk...@gmail.com> > To: Jim Mooney <cybervigila...@gmail.com> > Cc: tutor@python.org > Subject: Re: [Tutor] Pygraphics crashed > Message-ID: > <cacl+1auk6u3gsrwyeh9to7z3isd+f2ym+jmks9to1xq8vf8...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > On Thu, May 16, 2013 at 6:15 PM, Jim Mooney <cybervigila...@gmail.com> wrote: >> How do I install PIL with easy-install? I used that once but forget >> how. I seem to recall reading it installs a version that is Py native >> and doesn't choke on your OS. Or did I read that wrong? > > I recommend pip instead of easy_install because it allows you to > easily uninstall. > > First install distribute: > http://python-distribute.org/distribute_setup.py > > Next install pip: > https://raw.github.com/pypa/pip/master/contrib/get-pip.py > > Quickstart guide: > http://www.pip-installer.org/en/1.3.1/quickstart.html > > On Windows, pip and easy_install are a bit limited. I gather that the > new Wheel package format (.whl) and compatibility tags should solve > the problem (see PEPs 427 and 425). The development version of pip > supports Wheel. As is, pip works just fine for installing pure Python > packages from source. easy_install also supports binary eggs, but I > dislike not having an easy way to uninstall. At least an exe/msi > installer lets you uninstall using the Windows control panel. > > If you have a supported C compiler configured, you can use pip to > install packages that have self-contained C extensions (i.e. no > dependencies -- such as psutil or cython). Visual Studio [Express] is > recommended (2008 for 2.6-3.2; 2010 for 3.3), especially if C++ is > used, but MinGW-w64 can be made to work. The big problem here is > Windows lacks dependency management for installing libraries and > development files (headers and import libs) to known system locations. > So compiling an extension module that has dependencies needs to be > configured manually. > > PIL has a lot of dependencies: libjpeg, libtiff, zlib, freetype2, > littleCMS, libwebp, and Tcl/Tk. Building it is a moderately > challenging process on Windows -- not really suited for a beginner. > Building NumPy/SciPy would be even more work since they need a Fortran > compiler, too. Fortunately for Windows users, Christoph Gohlke has > already done all the hard work for dozens of the most popular > packages. > > > ------------------------------ > > Message: 2 > Date: Fri, 17 May 2013 08:50:32 +0200 > From: Peter Otten <__pete...@web.de> > To: tutor@python.org > Subject: Re: [Tutor] Python Idle Crashing > Message-ID: <kn4jv5$3kb$1...@ger.gmane.org> > Content-Type: text/plain; charset="ISO-8859-1" > > kyle seebohm wrote: > >> I recently created a program that searches through a computer's drive to >> make a list of all the files in that drive. However, the drive I am >> attempting to parse through is extremely large and when I run my program, >> it runs for about 5 or 10 minutes then proceeds to not respond and not >> finish parsing through the entire drive. Is there a way around this or >> does the drive just contain too many files? > > What do you want to do with it once the list of files is complete? > Can you process the filenames independently or do you really need them all > at once? > > > > ------------------------------ > > Message: 3 > Date: Fri, 17 May 2013 00:23:50 -0700 > From: Jim Mooney <cybervigila...@gmail.com> > To: tutor@python.org > Subject: Re: [Tutor] Can't install latest PIL > Message-ID: > <CALRAYNVES=OSWvdn2h+yePnTb=n+4+5t2cxqy454ghbpa4w...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > >> If you see a syntax error, that means your code could not be compiled. >> Python's parser doesn't grok "import image from pil". In natural >> language we have the freedom to swap the order of clauses, but >> programming languages are generally more rigid. The correct order is >> "from pil import image" -- but actually it has to be "from PIL import >> Image". > > Yeah, I fixed that but it still blew a fuse. Going back to 32 bit > fixed everything. > > from ** import ** just sounds backward to me, so I'll get it wrong > until I get it right. > > Actually, it is backward by standard English - a design flub ;') > > BTW, I noticed that Msoft Visual Studio has Python. Does that mean I > could made a standalone Win executable with Python, or would a user > still need the Py interpreter installed? It would be nice if you could > make an exe. > > Jim > > > ------------------------------ > > Message: 4 > Date: Fri, 17 May 2013 04:19:28 -0400 > From: eryksun <eryk...@gmail.com> > To: Jim Mooney <cybervigila...@gmail.com> > Cc: tutor@python.org > Subject: Re: [Tutor] Can't install latest PIL > Message-ID: > <cacl+1av7kaomytfayyuiyowmyikf8hsnlopmd1v6oyielvt...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > On Fri, May 17, 2013 at 3:23 AM, Jim Mooney <cybervigila...@gmail.com> wrote: >> BTW, I noticed that Msoft Visual Studio has Python. Does that mean I >> could made a standalone Win executable with Python, or would a user >> still need the Py interpreter installed? It would be nice if you could >> make an exe. > > Are you referring to Python Tools for Visual Studio? PTVS lets you use > Visual Studio as a Python IDE: > > http://pytools.codeplex.com > > For CPython, one option for creating an exe is py2exe: > > http://www.py2exe.org/index.cgi/Tutorial > > If you're referring to IronPython, that's a .NET implementation of Python: > > http://ironpython.codeplex.com > http://www.ironpython.info > > Here's a tutorial on creating an exe with IronPython: > > http://dbaportal.eu/2009/12/21/ironpython-how-to-compile-exe > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > > ------------------------------ > > End of Tutor Digest, Vol 111, Issue 51 > ************************************** _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor