problem importing

Peter Otten __peter__ at web.de
Tue Oct 29 06:40:37 EDT 2013


C. Ng wrote:

> Hi all,
> So I cloned a package xyz from github. OS is ubuntu 12.04.
> Then install successfully using "sudo python setup.py install"
> Now when I try to import xyz, I get "ImportError: No module named xyz"
> unless my current working directory is in xyz. Appreciate your help.
> Thanks.

Maybe the author called the toplevel package pyxyz or XYZ -- when you don't 
provide the actual package name/github url we can only guess.

Or

$ which python

and

$ sudo which python

point to different Python installations.




More information about the Python-list mailing list