Windows Guide¶
In this quick tutorial we’ll see how to install all the prerequisites necessary for installing Genropy starting completely from scratch.
Python installation on Windows 10¶
While Python is already included by default on Unix-based systems, on Windows systems the language must be explicitly installed. Then start downloading the executable installer of the latest version available from the download page of `Python <https://www.python.org/ >`_ and install it.
On the first screen make sure to choose the Add Python X.XX to PATH option and install for all users with the Install launcher for all users option.
IDLE and PIP are automatically added with the default installation, but make sure it is indicated on the screen. Also add the pylauncher, necessary for the correct execution of the processes:
Finally, check on the last screen that the installation is applied to all users, and associate the .py files with the pylauncher:
Hint
Adding Python to the PATH allows you to invoke the interpreter from any folder on your computer, without having to specify its full path.
To check that you have installed Python correctly, just open a command prompt window (the fastest way is to press the Windows + R keys, type CMD and then press ENTER, but you can also search for the command prompt in the Start menu ) and run the interpreter:
C:\\> **python**
If something like this appears on the screen, congratulations! Python is installed on your computer:
Python 3.10.3 (tags/v3.10.3:a342a49, Mar 16 2022, 13:07:40) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Hint
The three greater than signs >>> indicate that you are now inside the interpreter, ready to write and execute Python code. To return to the command prompt, type exit() and press ENTER
Git on Windows¶
Download and install Git for Windows. There are different versions, made by different distributors, but you can use the one you feel best with. Git for Windows, that is, what we are telling you about, also installs Git Bash: it is a powerful shell, superior to the Windows command prompt, which among other things allows you to execute Unix-style instructions even under Windows. Very useful.
Hint
You will be asked what to use as the default editor. If you don’t have a favorite editor, you can try Visual Studio Code: free, modern and integrated with Python.
Hint
To make the most of Git Bash, during installation make sure the options for integration with Windows Explorer
are selected, choose to be able to run Git from the command line and also from 3rd-party software ( is the default option anyway) and to configure the command prompt with Use Windows’ default console window. All other options can be left at the default values proposed during installation.
pip¶
pip is the Python installer package and if you have reached this point it should already be present and ready to use.
So from now on if you need to install Python libraries you can use the command:
C:\\> pip install package_name
Hint
The general rule, which applies to both pip and python, is that if you have multiple versions of Python on your system, Windows runs the first one it encounters in the PATH environment variable and then, to avoid invoking the wrong version, it is possible you’ll have to specify python3 or pip3.
At this point you should be able to proceed with the installation of Genropy