user2916607
user2916607

Reputation:

PyDev with Virtualenv: Interpreter not found

I am having trouble getting PyDev to work with Virtualenv. I have:

  1. Created a PyDev project. At that point I am forced to specify an interpreter, so I choose the installed system Python 2.7 interpreted. When I add the interpreter the necessary library folders are added as well.
  2. Issued virtualenv venv in the project directory to create a Virtualenv environment.
  3. Removed the standard interpreter I added in the first step and tried to add the one located in my venv directory. But I can not seem to get it to work.

In more detail:

All directories in my PythonFlaskTemplate PyDev project: 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? The result of configuring my Python interpreter

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): Error: Interpreter not found

How should I configure PyDev to make it play nicely with Virtualenv?

Upvotes: 2

Views: 3648

Answers (1)

Fabio Zadrozny
Fabio Zadrozny

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

Related Questions