0
votes

I tried to install scikit learn on my Ubuntu device using the command : pip install -U scikit-learn

I already have numpy, scipy and matpotlib installed. I am getting the following error: from pip._vendor.pkg_resources import RequirementParseError ImportError: cannot import name RequirementParseError

1
Edit your question and add information about your system. Are you on windows ? - seralouk
I am using Ubuntu 16.10 - floralmural
Can you execute, python -c "import sys, scipy, numpy, pip; print(scipy.__version__, numpy.__version__, pip.__version__, sys.version_info)", and add the result to your question? - Matt Hancock
@Newbie just posted a possible solution since you use ubuntu - seralouk

1 Answers

0
votes

Try this in the console:

sudo -i

Type your password and then type:

pip install scikit-learn

Hope this helps