• Register
1 vote
42 views

Problem:

I installed scikit-learn. When I try to run again:

sudo pip install -U scikit-learn

I get this message proving again that installation is ok:

Requirement already up-to-date: scikit-learn in /home/mebegueradj/.local/lib/python2.7/site-packages

Still, I can’t import it. How to resolve this problem?

12 7 7
15,250 points

1 Answer

0 votes

Solution:

First of all, make sure you’ve installed both the python and pip same version. As per your screenshot, I can see you’ve installed python2.7. 

In Ubuntu 16.04 and later the Python3 version of python-sklearn can be installed from the default Ubuntu repositories with the following command:

sudo apt install python3-sklearn

 

13 9 6
94,240 points

Related questions

0 votes
1 answer 15 views
15 views
I am setting up a django project and i am using python for this. I heard that the best way to this is by setting up a virtual environment. I installed my virtual environment by typing the command in my command promp by using: pip install virtualenvwrappwer-win But when I ... environment I can not start my project. I am new In django if anyone know the solution please help me to set up my project.
asked Mar 9 LizzyM 6.1k points
1 vote
1 answer 115 views
115 views
Problem : I am totally trapped from many hours but still my issue is still not fixed. Currently I am trying to use only my CPU version and also trying to get the same No module which is named as 'pywrap_tensorflow_internal' please find below the error : ... 3.6. and TensorFlow is installed at: C:\Python\Python36\lib\site-packages\tensorflow. Kindly guide me in fixing above Tensorflow error.
asked May 11 stewart 4k points
1 vote
2 answers 211 views
211 views
Problem : I am beginner to Ancaconda3 and Tensorflow. I have also recently installed Ancaconda3 and Tensorflow. But if I try to import the Tensorflow in the python shell then I often face the below error: ModuleNotFoundError: No module named 'numpy.core._multiarray_umath ... also installed on my box and it can be very successfully imported in the python. Please note currently I am using Windows10.
asked Apr 22 stewart 4k points
1 vote
1 answer 16 views
16 views
Problem: I learnt pyhton programming and I am new to django. I installed django in my system using some command : pip install virtualenvwrapper-win mkvirtualenv test workon test pip install django It shows me that I have installed django in my system but when I ... not recognized as an internal or external command, operable program or batch file. Can anyone help me to solve out this problem?
asked Apr 4 LizzyM 6.1k points
0 votes
1 answer 26 views
26 views
workon test I learnt pyhton programming and I am new to django. I installed django in my system using some command : pip install virtualenvwrapper-win mkvirtualenv test workon test pip install django It shows me that I have installed django in my system but when I restart ... an internal or external command, operable program or batch file. Is there any problem in my system, an anyone help me out?
asked Mar 15 LizzyM 6.1k points