Created
September 3, 2013 15:44
-
-
Save wuub/6425638 to your computer and use it in GitHub Desktop.
SublimeREPL: Python + virtualenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can use: | |
- virtualenvwrapper (http://virtualenvwrapper.readthedocs.org/en/latest/) with default WORKON_HOME=~/.virtualenvs (most likely you don't have to change anything) | |
- venv.bash (https://github.com/wuub/venv) | |
- manually create virtualenv in one of directories scanned by SublimeREPL "python_virtualenv_paths": ["~/.virtualenvs", "~/.venv"] | |
I'll assume venv.bash as it's the thing I use + it's only a syntax-sugar on top of virtualenv w/o additional features or things to understand. | |
$ cd ~ | |
$ curl https://raw.github.com/wuub/venv/master/venv.bash -o venv.bash | |
$ source venv.bash | |
$ // add "source ~/venv.bash" to .bashrc or .profile if you like | |
$ venv create test_venv --python python3 // or any absolute path | |
OPTIONAL but highly recomended: | |
$ pip install ipython pyzmq // in your new virtualenv (venv.bash activates it by default) | |
Then run SublimeText. pick SublimeREPL: Python - virtualenv, and choose your freshly created venv. | |
Enjoy. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment