0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

未経験者向けPython 環境構築からHelloworldまで

Last updated at Posted at 2020-10-24

プログラミング体験会向けの環境構築手順。
Pythonを体験するための基本的な環境。

前提

OS: Windows10

環境

  • Python 3.9.0
  • Atom 1.52.0

Python

ダウンロード

image.png

image.png

インストール

ダウンロードしたファイルを実行してインストールを開始してください。
image.png

下の方にある「Add Python 3.9 to PATH」の部分に必ずチェックを入れてください。
image.png

こんなふうにインストールが進みます。
image.png

この画面が出たらインストール成功です。
image.png

インストールできたか確認

Windowsの左下にある「ここに入力して検索」の部分にcmdと入力してください。
image.png

表示された「コマンドプロンプト」を選択してください。
image.png

コマンドプロンプトでpython --versionを入力してEnterキーを押してください。以下のように出たら成功です。

Python 3.9.0

image.png

Atom(テキストエディタ)

ダウンロード

image.png

インストール

ダウンロードしたファイルを実行してインストールを開始してください。

image.png

こんな絵が出てきます。ちょっと時間かかります。
image.png

成功したらこんな画面が表示されます。
image.png

「Alt」キーを押すとメニューが出るので、「Add Project Folder」を選択しましょう。
image.png

任意の場所にフォルダを作って「フォルダの選択」を押してください。
image.png

こんな感じになりましたか?
image.png

Python Helloworld

フォルダアイコンのうえで右クリックをして「New File」を選択してください。
image.png

プログラムのファイル(ソースコード)の名前を入力したら、Enterキーを押してください。
image.png

プログラムを書いてみましょう。
image.png

ファイルに書くプログラム
print('hello!! world!!')

プログラムのファイルがある場所(パス)をコピーします。
image.png

コマンドプロンプトにcd パスの形式で貼り付けてEnterキーを押してください。cdとパスの間は半角スペースを空けてください。
※異なるドライブの場合は移動しない場合があるのでドライブを:と一緒に書いてEnterキーを押してください。
image.png

プログラムを実行してみましょう。

python hello.py

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?