Skip to content

Commit 35ff2a2

Browse files
committed
Pythonを自分のパソコンにインストールする方法について執筆
1 parent 750eb89 commit 35ff2a2

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/extras/3python/index.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
import installPython from "./install_python.mp4";
6+
7+
# Python を自分のパソコンにインストール
8+
9+
## 自分のパソコンへの Python のインストール方法
10+
11+
[VSCode をインストールの項](/docs/extras/1vscode/)を参考に VSCode をインストールしておいてください。
12+
13+
Windows を使っている場合は、[WSL をインストールの項](/docs/extras/2wsl/)を参考に WSL もインストールしておいてください。
14+
15+
VSCode で`samples` フォルダを開いている状態にしておいてください。
16+
17+
macOS、WSL には、Python がはじめからインストールされているので、下の動画のようにするだけで、簡単に Python を自分のパソコン上で実行することができます。
18+
19+
<video src={installPython} controls width="800px" />
20+
21+
- `sample.py` という名前でファイルを作成します。
22+
- `sample.py` の中に `print("Hello World!)` と入力します。
23+
- 保存します。
24+
- ターミナル上で、`python3 sample.py` と入力して、`Enterキー` を押します。
594 KB
Binary file not shown.

0 commit comments

Comments
 (0)