1

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

enter image description here

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

enter image description here

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

1 Answer 1

4

Check your script configurations.

edit configurations

Is your script using a different python interpreter?

python interpreter setting

Sign up to request clarification or add additional context in comments.

3 Comments

Ah that was the problem. Would setting the default interpreter not automatically change this? That's strange.
@Stupid.Fat.Cat Changing the default will not change the currently selected interpreter for any project. That is actually made to be that way so as to not mess up interpreters already set for other projects. Changing the default will only change for any new project that is created
Ah got it. Thanks

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.