Can Atom work with Python virtualenvwrapper

MAA picture MAA · Apr 19, 2016 · Viewed 9k times · Source

I want to start a Flask app. I installed virtualenvwrapper to manage the packages but I can't let Atom know that the current project should use the virtualenv's python binary.

from flask import Flask, render_template

Using Atom's script runner, I get an "ImportError: No module named flask".

I don't want the hassle of having to change to a terminal to run the app

Answer

Jacques picture Jacques · Sep 26, 2016

In Linux:

  1. Start your virtual environment python.

  2. Launch atom from your python virtual environment.

    (EVP) abc $ atom
    

That's all.