I got a lot of small errors and had a hard time, but I was able to go below
$ sudo port install openssl libxml2 libexpat
$ pythonz install --configure="--with-system-expat CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib" 3.5.2
Error (for search)
ImportError: No module named 'pyexpat'
make: *** [install] Error 1
ImportError: No module named pyexpat
Recommended Posts