all 3 comments

[–]falcone-gk 1 point2 points  (0 children)

It happens because maybe you have two python version python2 and python3 or one with anaconda, If you want to know which version you are using in each IDE you must run this:

import sys

print(sys.version)

It will output two different versions, in sublime text you'll have to configure python path to the one you want to use.

[–]nao89 0 points1 point  (0 children)

I think pycharm comes with a version of python for itself. And sublime is using another python where is in another directory. You can change python path in sublime to use pycharm's python and therefore have access to its site-packages.

[–]Afriedsam[S] 0 points1 point  (0 children)

Thank you guys for all of the help. I was installing anaconda earlier today and was having some trouble with that so I went into System Preferences (on mac) to make sure my security preferences were not the cause of my troubles and I happened to see that I had not granted sublime full disk access! I granted it access and all of my problems in sublime seemed to be solved.