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
?