kann nicht installiert Scikit-Learn
Ich wollte Scikit-Learn installieren, aber ich kann es nicht tun. Ich benutze den neuesten Fedora. Um scikit-learn zu installieren, tue ich es.
pip install scikit-learn
Ich erhalte Fehler:
g++ -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-3.4/sklearn/svm/liblinear.o build/temp.linux-x86_64-3.4/sklearn/svm/src/liblinear/tron.o build/temp.linux-x86_64-3.4/sklearn/svm/src/liblinear/linear.o -L/usr/lib64/atlas -L/usr/lib64 -Lbuild/temp.linux-x86_64-3.4 -lcblas -lm -lpython3.4m -o build/lib.linux-x86_64-3.4/sklearn/svm/liblinear.cpython-34m.so
/usr/bin/ld: cannot find -lcblas
collect2: error: ld returned 1 exit status
Partial import of sklearn during the build process.
error: Command "g++ -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-3.4/sklearn/svm/liblinear.o build/temp.linux-x86_64-3.4/sklearn/svm/src/liblinear/tron.o build/temp.linux-x86_64-3.4/sklearn/svm/src/liblinear/linear.o -L/usr/lib64/atlas -L/usr/lib64 -Lbuild/temp.linux-x86_64-3.4 -lcblas -lm -lpython3.4m -o build/lib.linux-x86_64-3.4/sklearn/svm/liblinear.cpython-34m.so" failed with exit status 1
/usr/bin/ld: cannot find -lcblas
collect2: error: ld returned 1 exit status
----------------------------------------
Command "/home/mstankiewicz/.virtualenvs/sus/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-4scm2pb_/scikit-learn/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8fh7u6fy-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/mstankiewicz/.virtualenvs/sus/include/site/python3.4/scikit-learn" failed with error code 1 in /tmp/pip-build-4scm2pb_/scikit-learn
Ich habe versucht, Atlas zu installieren, da ich auf Google gefunden, aber es hat nicht
sudo dnf -y install atlas3gf-base atlas-devel
Es ist nicht genug, immer noch das gleiche Abhängigkeitsproblem. – Sylvain
@Sylvain Vielleicht können Sie Annaconda ausprobieren. Es ist die beste Praxis für mich. –
Ich muss remote über Fabric bereitstellen, so dass Anaconda noch keine Option ist. Ich entfernte Fedora und installierte stattdessen Ubuntu Gnome. Das hat den Trick gemacht. – Sylvain