Sublime Forum

Builds in Terminal, not Sublime

#1

So I just installed PIL, and when I import it from the terminal, it is fine. When I try to import from Sublime Text 2, there is an import error. I am running Python 2.7.11. Unsure what is going wrong. I would greatly appreciate any help.

0 Likes

#2

ST has its own version of the python interpreter embedded, so the system/installed version (and all your changes to it) won’t affect it.

0 Likes

#3

So is there any way to change that?

0 Likes

#4

I am assuming that this is for a plugin - otherwise I might have misunderstood the issue(!), I haven’t tried this myself, but you could always add the library into your code’s folder.

0 Likes