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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.