PyCharm 不使用我配置的 virtualenv 解释器 [英] PyCharm not using my configured virtualenv interpreter

查看:39
本文介绍了PyCharm 不使用我配置的 virtualenv 解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在设置中添加了我的 virtualenv 并选择它作为默认解释器,如下所示:

I've added my virtualenv on the settings and selected it to be the default interpreter like so:

现在当我尝试运行一个脚本时,我注意到它实际上没有使用 virtualenv 的解释器:

Now when I try to run a script, I notice that it's actually not using the virtualenv's interpreter:

我做错了什么?我试过重新启动,我试过选择另一个解释器并重新选择.到目前为止还没有运气.

What am I doing wrong? I've tried restarting, I've tried selecting another interpreter and re-selecting. And so far no luck.

推荐答案

检查您的脚本配置.

您的脚本是否使用了不同的 Python 解释器?

Is your script using a different python interpreter?

这篇关于PyCharm 不使用我配置的 virtualenv 解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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