Reputation:
I am having trouble getting PyDev to work with Virtualenv. I have:
virtualenv venv
in the project directory to create a Virtualenv environment.venv
directory. But I can not seem to get it to work.In more detail:
All directories in my PythonFlaskTemplate PyDev project:
The result when I try to add the interpreter in my venv
directory as well as the necessary libraries there. Did I miss any library directory which I should have picked? Did I pick a directory I should not have picked?
And I still get an error saying that it can not find an interpreter. Even though the interpreter path I picked is correct (I can start it by ./venv/bin/python2.7
):
How should I configure PyDev to make it play nicely with Virtualenv?
Upvotes: 2
Views: 3648
Reputation: 25362
The problem there seems to be that you configured your project not to use the 'default' interpreter, but to use an interpreter which has to be named 'python'.
You can fix that by changing the name of the interpreter in the interpreter preferences (i.e.: preferences > pydev > interpreters > python interpreter > double click it and type 'python')
Or you can set your project to use the default interpreter (i.e.: select project > alt + enter > pydev - interpreter/grammar > interpreter: Default).
Upvotes: 6