Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change version of Python in PyCharm

Tags:

I wanted to make Discord bot (should I even write this here), but it's said that I need Python 3.6, not Python 3.7 that I have.

How can I change from Python 3.7 to Python 3.6 to make something like that ?

like image 278
SomeName Avatar asked Aug 26 '18 23:08

SomeName


People also ask

How do I change Python version to PyCharm?

Change the Python interpreter in the project settingsPress Ctrl+Alt+S to open the IDE settings and select Project <project name> | Python Interpreter. Expand the list of the available interpreters and click the Show All link. Select the target interpreter.

How do I change the version of Python?

As a standard, it is recommended to use the python3 command or python3. 7 to select a specific version. The py.exe launcher will automatically select the most recent version of Python you've installed. You can also use commands like py -3.7 to select a particular version, or py --list to see which versions can be used.


1 Answers

First make sure you have Python 3.6 installed.

Then Go to File > Settings > Project:* > Project Interpreter, then select your interpreter under the Project Interpreter drop down.

If its still not there, you can also press the settings cog button enter image description here on the right side of the drop down and select add. Select System Interpreter from the left side, then select the interpreter from there. When you press ok, the interpreter will be available to be selected.

like image 53
abc Avatar answered Sep 20 '22 06:09

abc