tutorial net
*********WOOOOOOW *********
We're happy to see you're enjoying our races (already 5 pages viewed today)! You can keep checking out by becoming a member of the tutorial net community. It's free!
You will also be able to keep track of your race progress, practice on exercises, and chat with other members.

Go down
Posts : 207
Join date : 2017-11-11
Age : 28
Location : algeria
View user profilehttp://www.tutorial-net.com

tutorial Python - Install Python

on Fri Mar 30, 2018 10:27 am
Click on the link Downloadin the main menu of the page.

Select the version of Python you want to use (I recommend the latest one).

We offer one (or more) link (s) to a Windows version: select the one that will suit your processor. If in doubt, download an x86 version.

If your computer tells you it can not run the program, try another version of Python.

Save and run the installation file and follow the steps. It is neither very long nor very difficult.

Once the installation is complete, you can go to the menu Démarrer> Tous les programmes. Python should appear in this list (following figure). We will see soon how to launch it, no impatience ...
[You must be registered and logged in to see this image.]
On Linux
Python is pre-installed on most Linux distributions. However, you may not have the latest version. To check it, type the command in a terminal python -V. This command returns the version of Python currently installed on your system. It is very likely that it is a version 2.x , like 2.6 or 2.7, for compatibility reasons. In any case, I advise you to install Python 3.x, the syntax is very close to Python 2.x but differs anyway ...

Click downloadand download the latest version of Python (currently "Python 3.4 gzipped source tarball"). Open a terminal, then go to the folder where the archive is located:

Uncompress the archive by typing: tar -xzf Python-3.4.0.tar.bz2(this command is of course to adapt according to the version and the type of compression).

Wait a few moments for the decompression to finish, then go to the folder just created in the current directory ( Python-3.4.0in my case).

Run the script configureby typing ./configurein the console.

Once the configuration has taken place, you only have to compile by typing makeand then make installas superuser.

On Mac OS X
Download the latest version of Python. Open the file .dmgand double-click on the installation packagePython.mpkg

An installation wizard opens, let yourself be guided: Python is now installed!

Start Python
Phew! That's done !

Well, in theory, we start using Python in the next chapter but, for you to be a little rewarded for your exemplary installation, here are the different ways to access the Python command line that we will particularly study in the next chapters.

You have several ways to access the Python command line, the most obvious of moving through the menus Démarrer> Tous les programmes> Python 3.4> Python (Command Line). If all goes well, you should get a beautiful console (following figure). The information displayed in yours may not be the same, but do not worry about it
[You must be registered and logged in to see this image.]
What's this ?

We'll see later. The important thing is that you have managed to open the Python interpreter console, the rest will wait for the next chapter.

You can also go through the Windows command line; because of shortcuts, I usually prefer this method, but it's a matter of taste.
Go to the menu Démarrerand click Exécuter. In the window that appears, simply type "py" and the Python command line should reappear. Be aware that you can directly go in Exécuterby typing the Windows+ shortcut R.

To close the Python shell, you can type "exit ()" and then press the key Entrée.

On Linux
When you installed it on your system, Python created a link to the interpreter as python3.X (where X is the version number installed).
Back to top
Permissions in this forum:
You cannot reply to topics in this forum