scikit-learn: python setup.py develop fails
testing today (Aug 12th) master.
the traceback is the following
$ python setup.py develop
Partial import of sklearn during the build process.
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'zip_safe'
warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'include_package_data'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'develop'
In setup.py there is already some machinery to handle setuptools extra commands.
A simple fix would be to try to import setuptools at the very beginning to setup.py:
try:
import setuptools
except ImportError:
pass
Do you see any problem with this solution?
About this issue
- Original URL
- State: closed
- Created 12 years ago
- Comments: 16 (16 by maintainers)
2012/8/23 Alexandre Gramfort notifications@github.com
This is exactly what
sudo pip install -e /path/to/source/folder/for/scikit-learn
does for you.Olivier http://twitter.com/ogrisel - http://github.com/ogrisel
I use
sudo pip install -e .
in the scikit-learn folder instead and it works without having to put the setuptools (optional) dependency on scikit-learn.Olivier
can you give some motivating details on why I would be interested in
python setup.py develop
? I’ve never used this…