Eclipse unable to get info on the interpreter in virtual environment

匿名 (未验证) 提交于 2019-12-03 01:01:02

问题:

I'm on Mac OS X 10.8. Running Eclipse 4.2.2 with Pydev installed.

I have a Django project that I run in a virtual environment for obvious reasons (libraries versioning etc.)

When I attempt to point Eclipse to the interpreter 'python2.7' in the bin folder of the virtual environment, Eclipse spits out the error that it has failed to get info on the interpreter. Either it's unsupported (it is 2.7 so we're fine there) or it's an invalid interpreter (but I'm pointing to the alias).

Any ideas what could be causing this, or steps to fix it?

回答1:

I ended up resetting my virtual environment and it fixed the problem. All I needed to do was go up to the directory the virtual environment was in and type:

virtualenv . 

Worked like a charm.

If you need it, you can go through the full steps to set up a virtual environment here: http://simononsoftware.com/virtualenv-tutorial/



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!