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?
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 (ie: preferences > pydev > interpreters > python interpreter > double click it and type 'python')
Or you can set your project to use the default interpreter (ie: select project > alt + enter > pydev - interpreter/grammar > interpreter: Default).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.