Hello, new OSX and homebrew user here- I am trying to setup python / pip / virtualenv on Mac OS the way I’ve always used it for linux. Various things I read on the Internet suggested that homebrew was the best way to get up-to-date python on mac os. We followed the instructions in this webpage:
Then we tried to run some code that works on my linux machine. When it runs on mac, it causes a “segmentation fault: 11”. I’ve done some detective work and it turns out that this happens in the python XML package, lxml.
From web searches, I’ve seen numerous reports of segfaults in python on mac, and they are all caused by issues with static linking of libraries at build-time, leading to conflicts . e.g.:
The solutions all seem to be specific to the linked problems, though, and I don’t know how to avoid the problem in my case. It sounds like something that most people don’t run into. Being a very novice developer on Mac OS, I don’t know how to proceed- can anyone here recommend a solution?