I have previously been using PyCharm with Python 2.7, and have been able to import the module sklearn
, which was intalled via sudo apt-get install python-sklearn
.
However, I have now changed the settings in PyCharm to use Python 3.4. Now, it gives me the error: ImportError: No module named 'sklearn'.
I suppose this is because sklearn
was installed in /usr/lib/python2.7/dist-packages
. But in /usr/lib/python3.4
, there is no directory called dist-packages
. However, I have a directory called /usr/lib/python3/dist-packages
, which has just one directory, which is dist-packages
.
Any idea on what I need to do to clean this all up?