Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Atom work with Python virtualenvwrapper

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

like image 340
MAA Avatar asked Apr 18 '16 23:04

MAA


People also ask

Can you use Atom with Python?

Requirements. ide-python requires Atom 1.21+ , Python language server 0.29+ and the atom-ide-base package to expose the functionality within Atom.

How do you use VENV in an Atom?

Now in the Atom software, at the bottom left of the screen, press noVirtualenv. A window opens where your Virtualenv name is displayed, and you can select it by tapping on it. Now your Virtualenv is ready and you can create or import your own project and get started.

What is virtualenvwrapper Python?

virtualenvwrapper is a set of extensions to Ian Bicking's virtualenv tool. The extensions include wrappers for creating and deleting virtual environments and otherwise managing your development workflow, making it easier to work on more than one project at a time without introducing conflicts in their dependencies.


1 Answers

In Linux:

  1. Start your virtual environment python.

  2. Launch atom from your python virtual environment.

    (EVP) abc $ atom
    

That's all.

like image 62
Jacques Avatar answered Sep 29 '22 18:09

Jacques