Closed hackermd closed 4 years ago
The error is related to not finding the numpy headers, but I'm not sure how the --user
flag relates to it.
When I run the same command with sudo
it works:
docker run -t hackermd/ubuntu-xenial-python sudo pip install mahotas --user
My guess is that pip
does not use the global environment when using --user
and you do not have numpy installed on your user directory.
Does it work if you use pip build
and pip install --user
in succession?
pip wheel mahotas
alone fails with the same error.
When I install numpy
first separately, it works:
pip install numpy --user
pip install mahotas --user
This also works:
sudo pip install numpy
pip install mahotas --user
The following link should help https://mahotas.readthedocs.io/en/latest/install.html
I cherry-picked the commit above from @ATolkachev and this will be part of the next (upcoming) release
When
mahotas
is installed withpip install mahotas --user
building wheels fails with the following error on Ubuntu 16.04 with Python 2.7.12:This fails:
This works: