scikit-learn: can't setup.py install without numpy
At minimum, this could use a better error message. Is it not possible to have a project that depends on sklearn and installs all its dependencies to a virtualenv in a single pass? Must I do one pass to install numpy and everything else, and a second pass just to install sklearn?
$ python setup.py install
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "setup.py", line 154, in <module>
setup_package()
File "setup.py", line 146, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 32 (22 by maintainers)
Commits related to this issue
- setup.py: Fix numpy installation Pass build_requires if numpy is not found Fixes #4164 Signed-off-by: Saket Choudhary <saketkc@gmail.com> — committed to saketkc/scikit-learn by saketkc 9 years ago
- trying to get travis to install scikit-learn, but running into this problem: https://github.com/scikit-learn/scikit-learn/issues/4164 — committed to tapilab/pygrade by aronwc 9 years ago
- preinstall numpy, fixing scikit future installs via requirements As scikit cannot be installed on the same step of pip install of numpy (See: https://github.com/scikit-learn/scikit-learn/issues/4164#... — committed to alanjds/docker-python by alanjds 8 years ago
- Re-add numpy to requirements.txt. Re: feedback https://github.com/neuropoly/spinalcordtoolbox/pull/2840#discussion_r470994288 I think we can live with double-installs, now that I have an open PR and... — committed to spinalcordtoolbox/spinalcordtoolbox by kousu 4 years ago
- Make numpy a build dependency. It turns out there was a good reason for installing numpy explicitly, the line that we removed in https://github.com/neuropoly/spinalcordtoolbox/pull/2751, because scik... — committed to spinalcordtoolbox/spinalcordtoolbox by kousu 4 years ago
- Make numpy a build dependency. It turns out there was a good reason for installing numpy explicitly, the line that we removed in https://github.com/neuropoly/spinalcordtoolbox/pull/2751, because scik... — committed to spinalcordtoolbox/spinalcordtoolbox by kousu 4 years ago
- Make numpy a build dependency. It turns out there was a good reason for installing numpy explicitly, the line that we removed in https://github.com/neuropoly/spinalcordtoolbox/pull/2751, because scik... — committed to Drulex/spinalcordtoolbox by kousu 4 years ago
Temporary fix by overriding the
install
command insetup.py
:Then run
python setup.py install
as usualVarious processes at our company involve ‘pip install -r requirements.txt’. This works fine for any group of packages not containing sklearn. I feel certain this isn’t unique to me or my company.
On Fri, May 8, 2015, 4:29 PM Andreas Mueller notifications@github.com wrote: