I am trying to configure ST3 to work with Python virtualenv running on Windows 8.1. I usually use SublimeREPL with my global Python installation to run files. Now that I am using venvs, I am having problems starting up. Here is what I tried:
I have a parent directory with virtualenvs folder, and then one scripts for my .py files that I communicate with. Usually I just go to \virtualenvs\venv\scripts\activate and do my work with the python interpreter, but I would like you to be able to create files without having to go through the command line using ST3 and SublimeREPL.
I created a build system that looks like this:
{ "shell_cmd": ["\code\virtualenvs\venv\scripts\python.exe", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python", }
But I'm not even sure that this is what I need to do to use SublimeREPL, since I never had to worry about Tools > Build Systems before, just Tools > SublimeREPL > Python > Python - RUN current file .
How can I change the build system or configure SublimeREPL RUN? For a test case, I have a requests module installed in venv, but not in my global python installation. Importing from the command line is fine, but the .py file with import requests returns ImportError.
python sublimetext sublimetext3 virtualenv sublimerepl
Redd
source share