How to install python

Installing python in Windows

In this post, I will develop two ways to install python, the first one, and the easiest, consists to install anaconda, or another IDE that you prefer, this allow to have all the package necessary to start with python. the second solution is to install directly python, and use any text editor to develop codes. I do not preconize this second method.

process to install anaconda:

in this post I will show how to install anaconda. The open-source Anaconda Distribution is the easiest way to perform Python/R data science and machine learning on Linux, Windows, and Mac OS X. With over 15 million users worldwide, it is the industry standard for developing, testing, and training on a single machine

Anaconda. installation. setup

go to https://www.anaconda.com/ and download the distribution that suits you. (Windows, macOS or Linux);

and then you can launch the program install.

How to launch python 

when the install is finished, you can use python to program your first application. But how to do that?

There are at least 2 methods that allow you to run python on a computer with windows

  • with command line
    • write, print ‘Hello World’, using any text editor (personally I use Notepad++)
    • save the file using .py extension
  • or with an interactive interface

Commande line

launch an editor. personally, I use spyder because it is simple and intuitive.

Make the first program

To make your first program, you can start by:

1- write: print “Hello world !”

2- save the file as MyFirstProgram.py (for example) the name of your file must be ended by .py

3- execute the file and look at the output window 

CONGRATULATION !!!

Spread the love

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.