Friday, May 16, 2008

Dear lazyweb...

I'm setting up my Python dev environment on a new macbook... and easy_install is running like treacle down a hill. It is so slow!

Anyone else experienced this, and worked out what is wrong? I'm guessing its something network related...

5 comments:

Jesse said...

It flies on my machine (macbook pro)

Anonymous said...

Is it easy install itself that's hogging it up, or is the the searching and downloading that's the problem?

s3bastien said...

I had some major performance problems with the Python version provided by Fink (espectially with the sqlite module). I don't know if this is related, but if you use Fink, you could try with MacPorts' Python for instance.

Anonymous said...

I can't recommend using any distribution of Python from Fink or MacPorts, unless you really need a specific version of Python. Python 2.5's distutils in Leopard is very well configured by default (unlike in many Linux distributions) and it comes with a huge amount of 3rd party "extra" libraries (it even comes bundled with easy_install).

If you're using Tiger, the framework version of Python 2.5 from python.org is also nice. Installing things with easy_install will install them inside the framework folder by default, which is a useful feature.

If you find easy_install having to search past the "simple" index for the package you're trying to get, it's probably because the package is uploaded to PyPI with different case. If you find PyPI is just slow in general for you, Zope has a PyPI mirror at http://download.zope.org/, which I think you can use with easy_install -i http://download.zope.org/, but Zope's mirror has no browsing interface, and I'm not sure how it syncs with the official mirror.

Simon Wittber said...

Thanks for the tips, the solution involved removing sqlite3 from the build.

configure --with-readline

make clean

make

easy_install -U somepackage <--greased lighting

Popular Posts