+ 1

How to run program in virtual environment on sublime text 3 ?

Hey guys previously I used pycharm but it was too heavy on my computer so I moved to sublime. I am trying to use virtual environment to run programs but I can figure out how to use them so it would be great if you guys could help me use virtual environment. I am bit of a beginners so it would be great if you guys could give me step-by-step guide to how to do it and also if you guys could tell me a bit about project management in sublime it would be appreciable. I am on linux(Ubuntu 20.04). Thanks in advance.😁😁

26th Aug 2020, 9:55 AM
Samip Karki
Samip Karki - avatar
3 Respostas
+ 1
Kostia Gorbach sublime is not a IDE i agree with that but we can run programs from it directly using Ctrl+B. It is a text editor but with packages like Anaconda, BracketHghlighter and few others it can be turned into lightweight IDE. I am only asking about its project management and project interpreter setup.
27th Aug 2020, 5:01 AM
Samip Karki
Samip Karki - avatar
0
1. Open terminal in folder where you want env to be 2. Install venv library python3 -m pip install --user virtualenv 3. Create environment python3 -m venv env_name You will see new folder with env_name name 4. Activate environment source env_name/bin/activate You will see (env_name) on the left side of you terminal line 5. Run your python file from terminal
26th Aug 2020, 7:49 PM
Kostia Gorbach
Kostia Gorbach - avatar
0
Sublime is not IDE, it's just a notebook, so you need to run your programs from terminal
26th Aug 2020, 7:50 PM
Kostia Gorbach
Kostia Gorbach - avatar