Python Forum

Full Version: Trouble when entering the number
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Thank you very much for your reply. But I am a beginner and don't succeed to "set up interpreter to point to python3". You should be very kind if you give me more information.
Did you see the link i posted.
Here Configuring Available Python Interpreters or just for local(if want to switch 2 to 3) Configuring Local Python Interpreters.

So let say you have install python 36 to C:\Python36
Then you go into Configuring Available Python Interpreters and point it to C:\Python36\python.exe
Then it will use this version for all  Project.

The this code shall not give you NameError when enter a string.
If get NameError you still using Python 2.x.
first_name = input("First name: ")
print(first_name)
Never saw such complexity. It will take a week to finish that ! The only thing I suceed is : ctrl+alt+S____after that I am lost. Please give me a path.___ctrl+alt+S>this >that>THAT> etc . Thanks in advance
With ctrl+alt+S>*>more____ I succeeded to load the 3.5 instead of the prevous 2.7, but I can "run" nothing. All items in the run pane are very little coloured. New trouble now !

With ctrl+alt+S>project_interprete>*>more____ I succeeded to load the 3.5 instead of the prevous 2.7, but I can "run" nothing. All items in the run pane are very little coloured. New trouble now !

I don't know why the trouble vanished. Now every thing is OK . Thanks to all Sylas
From the main menu bar, go to "File"
Select "Default Settings"
Select "Project Interpreter"

On the right hand side there is a drop down box that contains all Python versions that PyCharm can find. Select the one you will use most often. 

For a specific project:
From the main menu bar, go to "File"
Select "Settings"
Select "Project: name
Select "Project Interpreter"

Again, on the right hand side, select the Python version you wish to use for this Project.

There is also extensive in-line Help, if you just go to the main menu bar and select "Help".  If nothing else, you should at least read the "Getting Started" section.
Pages: 1 2 3