如何将scikit-learn和gensim添加到我的库的setup.py中?

时间:2014-11-24 12:26:05

标签: python installation scikit-learn gensim

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-learngensim添加到setup.py

0 个答案:

没有答案