I want to use pycurl
with ST3 for one of my plugin which am creating.
I installed pycurl
using pip3 install pycurl
and I can get it working on python console but when I use import pycurl
in my ST3 plugin it throws error ImportError: No module named 'pycurl'
I found this post and it suggested to move the module code inside package directory and I did the same.
Here is my package structure
MyPackage-Dir
>> MyPackage.py
>> lib
>> pycurl
>> complete module contents
I git cloned pycurl repo and placed its content inside the above pycurl folder. After this I changed my code reference to from .lib import pycurl
but am getting error AttributeError: 'module' object has no attribute 'Curl'
when I try to use c = pycurl.Curl()
So, any ideas on how to correctly reference 3rd party libs in ST3
PS : I am on OS X El Capitan 10.11.1 & I installed python2 & python3 without using brew or any package manager