環境構築
このページでは「Python」の環境構築の仕方を記載します。
下記URLからPythonのインストーラモジュールをダウンロードします。
![](https://cyber-security-forensic.com/wp-content/uploads/cocoon-resources/blog-card-cache/f8f5d529d35334f2fb264d19f656224e.png)
Download Python
The official home of the Python Programming Language
「python-3.10.1-amd64.exe」をダウンロードしたら、実行すると下記の画面に
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-1-800x493.png)
「Add Python 3.10 to PATH」にチェックを入れることは大事。パソコンの環境変数に機能させるのに必要です。
「Install Now」だと簡単ですが、せっかくなので「Customize installation」も見てみましょう。
下記2ページが設定であり、デフォルト状態です。
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-2-800x493.png)
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-3-800x493.png)
インストール完了画面が表示されたら、右下「Close」
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-4-800x493.png)
コマンドプロンプトで「python –version」を入力して、インストールしたpythonのバージョンが確認できます。
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-5.png)
または、コマンドプロンプトで「python」を入力し、会話モードから出る際には「exit()」を入力します。
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-6-800x205.png)
上記の画面が表示されれば、インストールが成功しています。
テキストエディタのインストール
コードを記載する際には、メモ帳などよりも、コード記載用のテキストエディタをインストールした方がいいです。
下記URLから、VSCodeのインストールします。
![](https://cyber-security-forensic.com/wp-content/uploads/cocoon-resources/blog-card-cache/2d12e02afa45389f9df5f8f7ed2e9d01.png)
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code edit...
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-7-800x436.png)
Windowsをインストールすると、「VSCodeUserSetup-x64-1.63.0.exe」がダウンロードされるため実行します。
実行後、「使用許諾契約書の同意」、「インストール先の指定」、「スタートメニューフォルダの指定」等の画面が表示されますが、デフォルトでOKですので、説明は省略します。
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-8-800x512.png)
![](https://cyber-security-forensic.com/wp-content/uploads/2021/12/image-9-800x465.png)
これで準備の完了です。
コメント