Live data from Hacker News

Installing and setting up OS X Mavericks for Python development

blog.kristian.io

61–65 of 65 posts

Re: Installing and setting up OS X Mavericks for Python development

#61
post #32

Earlier quoted context omitted.

I had tons of issues trying to get Postgres to work on my Mac. Lots of other conflicts, too. I think the Mountain Lion OS upgrade fried my host dev environment, too. Eventually, I went the VM route....afterall, you're going to eventually deploy to a Linux box anyway, and there's enough differences that you'll feel the pain when you go to deploy. And now, I don't have a polluted host OS with tons of versions of softwa…

I had tons of issues trying to get Postgres to work on my Mac Did you try http://postgresapp.com ?

Yes, I actually have that installed. Back when I was originally trying to get it to work, that wasn't available.

Re: Installing and setting up OS X Mavericks for Python development

#62
post #42

This article is so opinionated. Just some counter-options: Enabling apps from everywhere : Don't disable this. It's actually a good security feature. If you want to run an app that isn't signed, right-click and click "Open" and confirm you really want to run it and the OS will remember that choice for that app in future. Terminal : The default Terminal is actually pretty solid. Much better than it used to be. Two com…

+1 for installing python from homebrew; letting the default OSX installation be used at all has caused me mad problems in the past.

Re: Installing and setting up OS X Mavericks for Python development

#63
post #42

This article is so opinionated. Just some counter-options: Enabling apps from everywhere : Don't disable this. It's actually a good security feature. If you want to run an app that isn't signed, right-click and click "Open" and confirm you really want to run it and the OS will remember that choice for that app in future. Terminal : The default Terminal is actually pretty solid. Much better than it used to be. Two com…

A while ago I tried fish. Unfortunately I ran into quite a few issues because it isn't POSIX compliant. When I wasn't running into issues, it was great! I now use zsh.

Re: Installing and setting up OS X Mavericks for Python development

#64
Before Mavericks, I was stupid (and lazy) enough to use the system Python, so my site-packages folder was completely destroyed on OS upgrade and instead of restoring a backup I decided to finally switch to home-brewed 2.7.5.

Installing numpy/scipy/matplotlib can be pretty tricky because of non-standard homebrew library locations (for stuff like gtk+, freetype2 etc), so you're better off using this http://github.com/samueljohn/homebrew-python and http://github.com/Homebrew/homebrew-science for all your scientific needs. By the way, Qt, Numba and a couple of other libraries seemed to get broken (upstream) in Mavericks, but I guess that wouldn't take too long to fix.

Also, upgrading homebrew libraries on Mavericks requires reinstallation of the entire dependency tree (because newest clang uses the newer libc++ instead of libstdc++).

Re: Installing and setting up OS X Mavericks for Python development

#65
post #60

On a clean installation of Mavericks, you should install the latest version of setuptools before you install anything else, as setuptools 0.6 is very broken: wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

Homebrewed Python includes the latest versions of pip and setuptools, making the command you suggested only necessary if you plan on sticking with the bundled system Python (which isn't recommended for reasons discussed in other comments here).
Post reply on HN