steady_progress
steady_progress

Reputation: 3741

/Library/Python/2.7/site-packages directory empty

When I cd into the /Library/Python/2.7/site-packages directory, there is only a README file. Where are all the third-party modules I installed such as sklearn?

Upvotes: 1

Views: 2393

Answers (1)

John Gordon
John Gordon

Reputation: 33351

Probably you installed the packages for a different version of python, or you installed them locally (in your home dir, not system-wide).

Inside a Python shell, type this:

import sklearn
print (sklearn.__file__)

That will tell you where the package is located.

Upvotes: 2

Related Questions