Search code examples
pythonpackagevirtualenvsublimetext3

How can i use python packages(that are only installed in my virtual env) while being in sublime text 3?


In other words, how can i build a system using python from virtual environment where i got all my packages installed. Ty in advance!


Solution

  • I haven't used it myself, but it looks like the Virtualenv package in Package Control does exactly what you're looking for. Please read through the README thoroughly, as it explains how the package works and which settings need to be set manually so that it will work.

    Essentially, what it's doing under the hood is finding the Python executable in your virtualenv and creating a custom build system with the path to that executable, so the proper modules will be accessible during the build. It claims to work with both venv and virtualenv environments.