If, while using pip
you see an error like this:
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
Try setting these environment variables first, then try again:
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
See: http://stackoverflow.com/a/22322645
The location of Python modules depends on a number of things (I assume).
For example, for Python 2.7 on Ubuntu:
/usr/lib/python2.7
/usr/local/lib/python2.7/dist-package
/usr/local/lib/python2.7/site-package
$HOME/.virtualenvs/<env>/lib/python2.7/site-packages
In case 1, these are modules installed by apt-get
(or equivalent). In case 2, these are modules installed via pip
or easy_install
. Case 3 is unknown. Case 4 is for using pip
in a virtualenv
.