I just bought a new Mac Book Pro with OSX 10.11 El Capitan
.
I'm running Google App Engine
Launcher python for local dev, which is where I see this in the logs when it reaches import lxml
.
"ImportError: No module named lxml"
I followed the instructions from the lxml website
sudo pip install lxml
Package installs but can't be seen on path by python. I updated my path in .bashrc
and .bash_profile
with:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/lib/python2.7/site-packages/:$PATH
Then found this article Installing lxml on Mac OSX (10.11) inside a virtualenv with pip
$ STATIC_DEPS=true pip install lxml
Again it installs but can't be found.
I even tried compiling from source and installing macports
as it got it embedded, but still no luck.
I read the lxml team is frustrated with OSX
and the mess with its outdated libraries and all.
UPDATE
In relation to the comments made, its not a app.yaml libraries declaration, and its unlikely an issue specific to GAE, as it seems more likely between python and oxs-elcapitan.
also I get this unusual message
The directory '/Users/[username]/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
I tried with sudo -H but that didn't resolve the paths either.
But it does suggest the changes in 10.11 might be part of the problem.