[Tutor] Getting started with Python

2018-07-24 Thread Aimee Hubbard
Hi,
I have done some introductory courses with Python, but they did not cover
how to get Python (3.7 version 64 bit) up and running on my own computer. I
have it downloaded on my Windows 10 computer and made sure in my
"Environment Variables" that it has the path
(C:\Users\aimee6\AppData\Local\Programs\Python\Python37\lib\site-packages).
But whenever I try to run any commands like "python --version" I get this
error:
Traceback (most recent call last):
  File "", line 1, in 
python
NameError: name 'python' is not defined

I am just not sure what step I am missing. Any help you can offer would be
greatly appreciated. Thank you so much and I hope you are having a great
night!

Best,

Aimee

-- 
*Aimee Hubbard M.S.*
Editorial Assistant, *Journal of Marital & Family Therapy*

Doctoral Student, Family Social Science-Couple & Family Therapy
University of Minnesota
ahubb...@umn.edu
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Getting started with Python

2018-07-24 Thread Mats Wichmann
On 07/24/2018 01:55 PM, Aimee Hubbard wrote:
> Hi,
> I have done some introductory courses with Python, but they did not cover
> how to get Python (3.7 version 64 bit) up and running on my own computer. I
> have it downloaded on my Windows 10 computer and made sure in my
> "Environment Variables" that it has the path
> (C:\Users\aimee6\AppData\Local\Programs\Python\Python37\lib\site-packages).
> But whenever I try to run any commands like "python --version" I get this
> error:
> Traceback (most recent call last):
>   File "", line 1, in 
> python
> NameError: name 'python' is not defined
> 
> I am just not sure what step I am missing. Any help you can offer would be
> greatly appreciated. Thank you so much and I hope you are having a great
> night!

you are typing the command _inside_ the python shell.  The command you
are trying is intended to be typed to a command shell (outside python)

to get the version from inside python type these:

import sys
print(sys.version)


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor