I am using Ubuntu 16.04. I have python 2.7 and python 3.7 installed on machine.
I have installed pandas on my machine.
However when I try to import the pandas package it gives ModuleNotFoundError: No module named 'pandas' for both the versions
The output of which python2 is /usr/bin/python2 and that of which python3 is /usr/local/bin/python3
which python2 ; which python3to the question by editing it. Are you using Anaconda? – N0rbert Jul 29 '20 at 13:07sudo apt-get install --reinstall python3-minimalandsudo rm /usr/local/bin/python3and then retry. – N0rbert Jul 29 '20 at 14:13