You installed openai-clip but from the commands you ran, it seems like what you are looking for is clip-openai. Please install the correct package and refer the GitHub repo which is similar to what you included.