Python Forum
Trouble when entering the number - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Trouble when entering the number (/thread-2620.html)

Pages: 1 2 3


RE: Trouble when entering the number - sylas - Apr-02-2017

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.


RE: Trouble when entering the number - snippsat - Apr-02-2017

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)



RE: Trouble when entering the number - sylas - Apr-02-2017

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


RE: Trouble when entering the number - sylas - Apr-02-2017

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


RE: Trouble when entering the number - sparkz_alot - Apr-02-2017

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.