Jestem całkiem nowy dla Pythona. Chcę użyć kodu KMean i chcę zainstalować scikit-learn
lub sklearn
.Nie można pobrać i zainstalować scikit-learn
Użyłem tego kodu, aby próbować zainstalować te pakiety:
pip install -U sklearn
pip install -U scikit-learn
Ale mam ten błąd:
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_reihaneh/sklearn/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-89YQB7-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_reihaneh/sklearn
Storing debug log for failure in /home/reihaneh/.pip/pip.log
Co jest przyczyną tego problemu?
Używam linux (ubuntu) –
Mam wiele błędów debugowania, chociaż mam zainstalowane numpy i scipy. kiedy używamy [pip install scikits.learn], używa wersji 0.8 i domyślnie, gdy próbujesz ponownie zainstalować system scikits.learn 0.8. Zatem użycie [pip install -U scikits.learn] spowoduje uaktualnienie wersji scikitów, naukę i instalację z powodzeniem w systemie. –