1

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.pyscikit,它的依赖项和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-learngensim到我的setup.py?

4

0 回答 0