
- #SUBLIME TEXT 3 BUILOD FOR MAC VIRTUAL ENVIRONMENT INSTALL#
- #SUBLIME TEXT 3 BUILOD FOR MAC VIRTUAL ENVIRONMENT PORTABLE#
The current virtualenv path is stored in the project settings and can be edited manually if the project has been saved to a *.sublime-project file.Įxtending or customizing the build system should be possible.
#SUBLIME TEXT 3 BUILOD FOR MAC VIRTUAL ENVIRONMENT PORTABLE#
It might be useful in case of portable python installations. extra_pathsĪdditional paths searched for python binaries.

There is a shortcut command for quickly adding a virtualenv directory to your settings: Virtualenv: Add directory. ~/.virtualenvs in Linux and OS X, and ~\Envs in Windows ( virtualenvwrapper-win). By default, includes virtualenvwrapper's WORKON_HOME. virtualenv_directoriesĪ list of directory paths searched for virtualenvs. Defaults to python -m virtualenv, assuming that virtualenv is installed on the default python prefix.ĭepending on your setup you might want to change this to something like: virtualenv, virtualenv-3.3, python3 -m virtualenv, etc. The executable used for virtualenv creation. You should override the necessary settings in Package Settings -> Virtualenv -> User instead. Do not modify the default settings as you will lose all the changes if the package is updated. The list of default settings is available through Preferences -> Package Settings -> Virtualenv -> Default. Launch a Python REPL using the current virtualenv with the command Virtualenv: SublimeREPL - Python.

Use the command Virtualenv: Remove, choose a virtualenv and confirm. The new virtualenv will be activated automatically. Creating a virtualenvĬhoose Virtualenv: New (or Virtualenv: New (venv) for built-in virtualenv), type a destination The command Virtualenv: Deactivate is available when a virtualenv is activated. Search Virtualenv: Activate in the command palette and select the desired virtualenv. The build system works with or without an activated virtualenv, so it can be used as default build for Python. If you do not have any other custom Python builds defined, Automatic should work too.

Usage Code ExecutionĮnable the Python + Virtualenv build system through the Tools -> Build System menu and execute with Ctrl+B.
#SUBLIME TEXT 3 BUILOD FOR MAC VIRTUAL ENVIRONMENT INSTALL#
Select Package Control: Install Package.ĭetailed instructions here.Open command palette through the menu or with Ctrl+Shift+P.Install through Package Control as usual: Tested in Linux and Windows but it should work in OS X as well. Virtualenv package and the built-in venv module from Python 3.3. Select or disable the current virtualenv easily. Finds virtualenvs in the open folders or anywhere in your system. Manage your virtualenvs directly from Sublime Text 3.
