When I run python abc.py it runs fine
But when I do sudo python abc.py then it shows some packages missing error. Of the several import errors, here's the one:
ImportError: No module named numpy
Why?
What I think is that those packages are installed with normal user(ubuntu) permissions and not root permissions. If this is the case, how should I get over with this? Do I have to install all the packages again with root access?
Note: everything I discussed here is w.r.t ec2 linux ubuntu machine
apt-get) or via easy_install or pip as root.pip install package-nameworked for me