1

I have Python 3.6.5 and Python 3.7.4 installed.

python --version

gives me 3.6, while

python3 --version

gives me 3.7. Running code in PyCharm indicates that it is still using 3.6. How do I update it to start using 3.7, and/or remove 3.6?

I've looked around SO and other forums, but so far nothing seemed to be relevant to this specific issue.

2
  • When you say remove, do you want to uninstall these python version? Commented Dec 21, 2019 at 1:42
  • @YacineMahdid I'm not sure if I need to uninstall it. I just want to stop using 3.6 and work with 3.7 if that's possible. Commented Dec 21, 2019 at 1:44

1 Answer 1

1

If you want to keep your other python versions and want PyCharm to run your code in the 3.7 version you can simply go into your PyCharm preference and set the project interpreter to 3.7.

Here is a stack overflow question showing you how

If you don't see the python interpreter there you can add it manually before setting it in the preferences. Here is a doc page that might help

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

1 Comment

This is exactly what I wanted but wasn't sure if it required removal of 3.6. Works like a charm. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.