Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using external Python frameworks #18

Open
basbebe opened this issue Feb 19, 2015 · 3 comments
Open

using external Python frameworks #18

basbebe opened this issue Feb 19, 2015 · 3 comments

Comments

@basbebe
Copy link

basbebe commented Feb 19, 2015

I'm trying to develop a small Python app with the CherryPy framework.
I'm installing with homebrew on a Mac.
however, integrated development doesn't find the module:

ImportError: No module named cherrypy

Running from the terminal does work.

And: Is there a way to make integrated development work with virtual environments like virtualenv or pyvenv?

@GiovanniCardamone
Copy link

i have the same issue, did you solve?

@basbebe
Copy link
Author

basbebe commented Jan 27, 2017

no – I switched to another solution…

@azariz
Copy link

azariz commented Sep 21, 2017

With VirtualEnv, You can simply add a pre-command to enable your env before executing the main script/file.

In builder.json (extension settings):

Replace :

{
        "name": "Python",
        "cmd": "python $FILE",
        ...
},

With :

{
        "name": "Python",
        "cmd": "source ./venv/bin/activate && python $FILE",
        ...
},

./venv is your virtualenv folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants