Eclipse无法在虚拟环境中获取解释器的信息 [英] Eclipse unable to get info on the interpreter in virtual environment

查看:502
本文介绍了Eclipse无法在虚拟环境中获取解释器的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X 10.8。运行Eclipse 4.2.2,安装Pydev。



我有一个Django项目,我在虚拟环境中运行明显的原因(库版本控制等)



当我试图将Eclipse指向虚拟环境的bin文件夹中的解释器python2.7时,Eclipse会发现它无法在解释器上获取信息的错误。或者它不支持(它是2.7,所以我们很好)或者它是一个无效的解释器(但我指向别名)。






任何想法可能导致这一点,还是要解决这个问题?

解决方案

我最终重置了我的虚拟环境,并解决了这个问题。我需要做的只是到虚拟环境的目录,然后键入:

  virtualenv。 

像一个魅力一样工作。



如果您需要它,您可以在这里完成设置虚拟环境的全部步骤:
http:/ /simononsoftware.com/virtualenv-tutorial/


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?

解决方案

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/

这篇关于Eclipse无法在虚拟环境中获取解释器的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆