How To Install Python And Access Using Command Line On Windows
Python is great language for any purpose you want, you can build website using python, you can build mobile app, or desktop desktop, everything can be done. With a lot of features, it helps to write code efficient and beautiful.
To learn python, you need to install python tools / compiler / interpreter, this post is simple guide to install Python in you Windows computer.
1. Go to download page of Python www.python.org/downloads and download python installer, and right after after follow the installation wizard until the process completed. Don't for get to choose 64 bit version if your machine is 64 bit.
2. After the process is finish, you can test your python installation, on the start menu search for python, then open the program
It means you didn't set python to your environment, to do that, open start menu and search for "edit system environment", open the program
Click environment variables >> System variables >> Select 'Path' >> Edit >> Add new
add python location, by default it is located in C:\users\YOUR_HOME_FOLDER/AppData/Local/Programs/Python/Python37
for example mine is C:\Users\AdamPC\AppData\Local\Programs\Python\Python37
To learn python, you need to install python tools / compiler / interpreter, this post is simple guide to install Python in you Windows computer.
1. Go to download page of Python www.python.org/downloads and download python installer, and right after after follow the installation wizard until the process completed. Don't for get to choose 64 bit version if your machine is 64 bit.
2. After the process is finish, you can test your python installation, on the start menu search for python, then open the program
You can do some test code like:
my_string = "Hello World!"
print (my_string)
3. Now if you open windows default command line, when you enter python command, it says something like "python is not recognized as an internal or external command,
operable program or batch file."
It means you didn't set python to your environment, to do that, open start menu and search for "edit system environment", open the program
Click environment variables >> System variables >> Select 'Path' >> Edit >> Add new
add python location, by default it is located in C:\users\YOUR_HOME_FOLDER/AppData/Local/Programs/Python/Python37
for example mine is C:\Users\AdamPC\AppData\Local\Programs\Python\Python37
Click OK
Now you can test by reopen command line and type "python"