Scikit-learn
是一个需要这些依赖的机器学习库,http ://scikit-learn.org/stable/install.html :
sudo apt-get install build-essential python-dev python-setuptools \
python-numpy python-scipy \
libatlas-dev libatlas3gf-base
在用户可以:
pip install -U scikit-learn
并且gensim
不需要额外的依赖项,http://radimrehurek.com/gensim/install.html并且只需执行以下操作:
pip install --upgrade gensim
我有我setup.py
的scikit
,它的依赖项和gensim
来自https://github.com/alvations/pywsd/blob/master/setup.py:
from distutils.core import setup
setup(
name='pywsd',
version='0.1',
packages=['pywsd',],
long_description='Python Implementations of Word Sense Disambiguation (WSD) technologies',
)
如何添加scikit-learn
和gensim
到我的setup.py
?