problem importing

C. Ng ngcbmy at gmail.com
Tue Oct 29 23:08:22 EDT 2013


On Tuesday, October 29, 2013 6:40:37 PM UTC+8, Peter Otten wrote:
> 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.

Solved by the package author. Thanks!



More information about the Python-list mailing list