05-Python

Python(Part.1)| Overview and Installation of Python (Windows11)

Learning python without thinking too hard| table of contentsThis is a table of contents page for Python....

Objectives

To understand “Overview of Python”.
To understand “How to install Python on Windows 11”.

Overview of Python

Overview of Python

What is Python?

Python is a programming language that has existed since the 1990s. Python has the following characteristics

  1. It is distributed as open source. (It is available free of charge.)
  2. The source code is publicly available. (The program itself can be examined.)
  3. It has abundant libraries and is used in a wide range of fields.
    • Machine Learning
    • Deep learning
    • Data Analysis
    • Web development
  4. Can be used on any Windows, Mac, or Linux OS.
  5. Supports various programming paradigms.

A programming paradigm is a way of thinking about programming. Programming paradigms include “procedural programming,” “object-oriented programming,” and “functional programming.

Python is currently developed and supported by the Python Software Foundation.

In this article, we will actually install python from the “Python Software Foundation” site page.

Python Installation Procedure(Windows11

Python installation procedure (Windows11)

Python installation procedure (Windows11)

Check the installation status of Python

Check if “python” is already installed. Launch a command prompt and type “python -V”. If you do not know how to start the command prompt, please refer to the following article.

Windows11|コマンドプロンプトの起動方法 | 現役エンジニア&プログラミングスクール講師Windows11|コマンドプロンプトの起動方法について記事にしています。起動方法としてタスクバーの「検索」ボックスから「コマンドプロンプト」を検索する方法と、タスクバーの非表示時に便利なファイル検索ボックスからの起動方法について取り上げています。...

If “python” is not installed, the following will be displayed

If “python” is installed, “Python Version” will be displayed.

Multiple versions of python can be installed. In that case, you can specify the version at the time of use.

Check Windows architecture

To install the appropriate python for your environment, check the Windows architecture: if your PC architecture is 64-bit, download the 64-bit python; if your PC architecture is 32-bit, download the 32-bit python.

In Windows 11, it is almost certainly python for 64-bit, but it is good to know how to check the architecture, so this article also includes this operation.

As for info of 64-bit or 32-bit PCs, you can check by going to the Windows Start Menu > User Icon > Change Account Settings > System > About.

Click “Start Menu” on the taskbar.

Click on “Account Name.” In this article, it is “ほわほわ”.

From the menu that appears, click on “Change Account Settings”.

When the Account Settings screen appears, select “System” from the left menu.

Click on “About” from the System Settings section.

From “Device Specifications,” check “System Type. You will see “64-bit operating system, x64-based processor.

Download Python

To install Python, you must download Python from the Python Software Foundation page, which can be found at (https://www.python. org/).

When you access the URL, it will appear as shown in the capture below.


Move the mouse cursor over “Download” and a pull-down menu labeled “Windows” will appear.

【English translation of captcha】
①Downloadsにマウスカーソルを乗せます。
→①Hover the mouse cursor over the Downloads.
②Windowsをクリックします。
→②Click on Windows.

Click on “Windows” and a list of “python download files” will appear. To install, select “Windows installer(64bit)” from the Stable Releases column. (This article downloads the ” python3.11.3 Windows installer (64bit )”.

Version numbers are divided into three segments.

Left: Major version
Center: Minor version
Right: Build version (patch version)

If the left and center numbers are the same, they can be treated as the same version even if the right (build version) is different. If the center (minor version) is different, it will be a different python even if they are the same 3 series.

※In this article, we installed “3.11.3”, but you may select any version you wish.

【English translation of captcha】
Pythonのバージョンが「3.11.3」で64bit版のpythonをインストールします。
→Install the 64-bit version of python with Python version “3.11.3”.

Click on the link to download the file.

【English translation of captcha】
pythonがダウンロードされます。
→python will be downloaded.

Open the downloaded file.

You will be asked, “Do you want to allow this app to make changes to your device? Click “Yes” and you will see a pop-up window ready to install, as shown in the capture below.

Check the “Add python.exe to PATH” checkbox. If you check this box, the directory where python will be installed will be registered in the PATH environment variable. This makes it possible to use python in directories other than the one in which it is installed. Basically, it is safe to assume that the check box is checked.

【English translation of captcha】
「Add python.exe PATH」にチェックを入れます。
→Check the “Add python.exe PATH” checkbox.

After checking the “Add python.exe PATH” checkbox, click “Install Now”.

【English translation of captcha】
「Add python.exe PATH」にチェックを入れたら「Install Now」をクリックします。
→After checking the “Add python.exe PATH” checkbox, click “Install Now”.

When the installation is complete, the following display appears. Click “Close”.

【English translation of captcha】
「Close」をクリックします。
→Click “Close.”

Check the status of the installation. Reopen the command prompt and type “python -V”. If the version is displayed, it was successful.

I would like to see if I can run it. At the command prompt, type “python”. The prompt will change to “>>>”.

The shell is now displayed as “>>>” and switches to a mode in which “python” can be executed.

This is a shell that can execute “python” and is called an “interactive shell” or”python console”.

This “interactive shell” is called “interactive mode” as well because each time you enter a line of a python program, you are asked to enter the next line.

Enter “1+1” as follows and Press Enter key. Python will run and return “2”. Then python console asks for the next input (a new “>>>” is displayed). to exit from python console, type “exit()”.

This completes the installation of python and confirmation of the installation.

That’s all for this time.

「python」おすすめ書籍 ベスト3 | 現役エンジニア&プログラミングスクール講師「python」の学習でお勧めしたい書籍をご紹介しています。お勧めする理由としては、考え方、イメージなどを適切に捉えていること、「生のpython」に焦点をあてて解説をしている書籍であることなどが理由です。勿論、この他にも良い書籍はありますが、特に質の高かったものを選んで記事にしています。ページの下部には「おすすめのITスクール情報」「おすすめ求人サイト」について情報を掲載中。...

ブックマークのすすめ

「ほわほわぶろぐ」を常に検索するのが面倒だという方はブックマークをお勧めします。ブックマークの設定は別記事にて掲載しています。

「お気に入り」の登録・削除方法【Google Chrome / Microsoft Edge】「お気に入り」の登録・削除方法【Google Chrome / Microsoft Edge】について解説している記事です。削除方法も掲載しています。...
【パソコン選び】失敗しないための重要ポイント | 現役エンジニア&プログラミングスクール講師【パソコン選び】失敗しないための重要ポイントについての記事です。パソコンのタイプと購入時に検討すべき点・家電量販店で見かけるCPUの見方・購入者が必要とするメモリ容量・HDDとSSDについて・ディスプレイの種類・バッテリーの持ち時間や保証・Officeソフト・ウィルス対策ソフトについて書いています。...
RELATED POST
05-Python

Python(Part.42)| python【集合(利用編-2)】【集合に対する様々な判定方法】

2024年11月26日
プログラミング学習 おすすめ書籍情報発信 パソコン初心者 エンジニア希望者 新人エンジニア IT業界への就職・転職希望者 サポートサイト Programming learning Recommended schools Recommended books Information dissemination Computer beginners Prospective engineers New engineers Prospective job seekers in the IT industry Support site
05-Python

Python(Part.--)| python【ユーザー定義関数(3)】| 【引数:ひきすう(仮引数/実引数/引数でのオブジェクトの利用)】

2024年8月10日
プログラミング学習 おすすめ書籍情報発信 パソコン初心者 エンジニア希望者 新人エンジニア IT業界への就職・転職希望者 サポートサイト Programming learning Recommended schools Recommended books Information dissemination Computer beginners Prospective engineers New engineers Prospective job seekers in the IT industry Support site