Sublime Forum

Can I install 3rd-lib using pip install and use it in my plugin?


For example pip3 install datrie, then in my I can add:

import datrie
# then use datrie


Sublime Text ships its own embedded python interpreter. It doesn’t have access to libraries of globally installed python, installed via pip.

Libraries need to be placed in Data/Libs/python3x to be globally visible by ST.

You can theoretically install libraries using pip into that directory, but everybody who wants to use you plugin would need to do so manually, atm. Probably not good user experience.

There are plans to teach Package Control to install python wheels automatically, but that’s still under development.

You can only vendor libraries in your plugin, atm.

1 Like