While installing Python on Windows is not significantly different from Mac, here's how it is done. Let's get into it:
- Visit python.org with your browser.
- Click on the latest version of Python and scroll down to the bottom of the page. Click Windows Intaller to download.
- After downloading, click on it to start the installer.
- Add python.exe to path and click on Customize installation
- Leave all the default boxes selected in the "Optional Features menu", especially the pip and IDLE. Pip is a package installer and IDLE is the development environment we are going to use later.
- Click Next and leave all the default options selected as shown below. You can change the install location for easy identification.
- We will run Python from the IDE which is the development and learning environment.
- You can also hit the Windows key + r and type cmd, click enter to enter the command line
- We want to run the current version of Python we installed so type python3 and you will see it running.
- Anytime you see the 3 greater than symbols ">>>" it means you are in the Python interpreter so you can type a Python code and it will work. ex. try 2+3 and you're going to get an output i.e 5
- But we are not going to be working in the Python terminal so you can type quit( ) and close the terminal.
- You can create a shortcut of the Python IDLE on the desktop because we are going to be using it frequently
If you have any questions you can leave them in the comment section and I will get back to you. You've got this💪
No comments:
Post a Comment