I just upgraded from Python 3.5.2 to 3.6.5 using the instructions found here. They worked, and I now have python 3.6 installed on my system. However, when I try and execute any python scripts with imported libraries, I get this error:
Traceback (most recent call last):
File "main.py", line 8, in <module>
from kclass import kNearestNeighbour, euclideanDistance, getFeatureDistance
File "/home/raovinnakota/Desktop/BioInformatics/Final_Project/kclass.py", line 10, in <module>
from matplotlib import pyplot
ModuleNotFoundError: No module named 'matplotlib'
I used pip3 to install matplotlib again to make sure, but it says matplotlib is already installed. This same error occurs with all other imported libraries as well.
Edit: After several hours of digging around, as well as the helpful comments from below, I found the reason why this wouldn't work is that I didn't have a pip3.6 to correspond to python3.6, which was a result of not correctly installing python 3.6 in the first place. I found this, which is by far the best step-by-step approach to updated to python 3.6 from 16.04. Thanks again for everyone that responded, much appreciated.