Python Forum
'Hello, World!' Problem - Urgent
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'Hello, World!' Problem - Urgent
#6
Presuming you have installed Python correctly, you should know that Python uses the command terminal by default, not PowerShell. If you file is something like:
print("hello world")
When you type "hello.py" in PowerShell, Python will open a command terminal window, print "hello world" then close the window. This happens faster than the human eye can register, so you should run it from a command terminal rather than PowerShell.

As to the problem you refer to, sounds as if the Environmental Variables may not be set. You can verify this by typing in a command terminal (not PowerShell) C:\> PATH , you should see the following entries:

Output:
C:\>PATH PATH=C:\Python36\Scripts\;C:\Python36\;
If they do not exist, you have to add them. If they do exist, try typing "python" (in either command terminal or PowerShell), you should see similar:
Output:
C:\>python Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
If you still have a problem, please post the directory where you installed Python. Verify that the location were you saved your file is indeed where it is installed.

Also, please do not post screen images, rather copy and paste any code, output and errors between their respective tags. Refer to our Help / Rules document on BBCode for instructions.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
'Hello, World!' Problem - Urgent - by OmarSinno - Sep-06-2017, 08:16 PM
RE: 'Hello, World!' Problem - Urgent - by cygnus_X1 - Sep-06-2017, 08:20 PM
RE: 'Hello, World!' Problem - Urgent - by OmarSinno - Sep-06-2017, 08:42 PM
RE: 'Hello, World!' Problem - Urgent - by OmarSinno - Sep-06-2017, 09:04 PM
RE: 'Hello, World!' Problem - Urgent - by sparkz_alot - Sep-06-2017, 09:47 PM
RE: 'Hello, World!' Problem - Urgent - by snippsat - Sep-06-2017, 10:23 PM
RE: 'Hello, World!' Problem - Urgent - by OmarSinno - Sep-07-2017, 06:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  World Clock syntax error OscarBoots 1 219 May-03-2024, 05:20 AM
Last Post: snippsat
  Hello World! rufenghk 0 989 Jun-02-2022, 09:48 PM
Last Post: rufenghk
  Very new to Python world daveseaman 0 1,497 Jun-25-2021, 07:17 PM
Last Post: daveseaman
  Need urgent help OneTwo 9 2,982 Nov-24-2020, 08:40 AM
Last Post: OneTwo
  Need help urgent fireablade 1 1,554 Oct-01-2019, 05:30 PM
Last Post: buran
  Help | Classes to use in real world soothsayerpg 9 4,253 Jul-08-2019, 07:30 PM
Last Post: nilamo
  running python hello world Avarage_Joe 8 5,327 Apr-13-2018, 04:20 PM
Last Post: Avarage_Joe
  Hello world! program, window disappears nerio 3 5,676 Mar-16-2018, 07:03 PM
Last Post: knackwurstbagel
  how to generate random 3d world (like minecraft) in python hsunteik 3 107,655 Jan-06-2017, 06:35 PM
Last Post: metulburr
  Hello World issues when using %% with ipython landlord1984 5 8,996 Dec-11-2016, 10:11 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020