move to pip and  optimize ubuntu installation