Using Virtualenv in Sublime Text 3 (Windows)
I was just looking for this setup for long.
Finally, found that pointing the path in the Sublime Text 3 build file (video 05:14 - 08:07)
can make it work.
The reason why I setup virtual environment because I need to separate different projects
based on purposes.
In this video, I pip install 2 packages - pandas and xlrd - to my virtual environment "myTradeEnv" to read the stock data from a csv file.
When you're in Sublime Text, type your Python code and save as a new Python file.
Then you go to Tools -> new build system and paste your code there.
Once you save that Sublime Text build file, get back to your Python file
and hit [Ctrl] + [B] (build) to run your code.
00:00 - 01:23 | Download and install Python
01:23 - 03:01| install virtualenv to system
03:19 - 04:09| create virtual environment myTradeEnv
04:22 - 05:11| download sublime text 3
05:14 - 08:07| setup sublime text 3 to run Python virtual environment
08:10 - 11:10 | test running python code in virtual environment to grab stock data from a csv file
No comments:
Post a Comment