LoginSignup
5

More than 5 years have passed since last update.

Python 環境構築 windows

Last updated at Posted at 2018-08-18

Pythonの開発環境(Windows)

業務の休憩中にPythonの勉強がしたかったので、休憩中に書いたWindowsでのPython開発環境構築のメモ

【Macの方はこちら】
Python環境構築 Mac

Windows:10
Python:3系

Pythonのインストール

まずは公式サイトにアクセス
【公式サイト】
https://www.python.org/

公式サイトにいったら、Downloadの部分にカーソルを合わせて、Windowsを選択
image.png

バージョンを選ぶ画面に遷移するので、
image.png

今回は、Python 3.6.5をインストール
※2系は20年にサポートが終了するらしいので、3系を入れるようにする
ctl + F で「3.6.5」を検索
image.png

このファイルの中の
Download Windows x86-64 executable installer
をダウンロード

zipファイルを解凍すると、以下の画面が出るので、
Install Nowを選択
image.png

インストール完了、Closeボタンで閉じちゃってください
image.png

Pythonがきちんとインストールされたか確認する

Windows10の人は、メニュー検索からpowershellと検索しPowerShellを起動
image.png

powershellで Python --versionと入力

  • きちんとインストールされている場合
    スクリーンショット (3).png

  • きちんとインストールされていない場合
    スクリーンショット (2).png

コマンドを打ってもエラーと出てしまう対処法

  • ログアウトする
    • 一回、ログアウトして、もう一度PowerShellを起動してPython --versionと入力
  • PCの再起動
    • PCを再起動して、あとは上記同様
  • 環境変数にPythonのインストール先のPathが通っているか確認する スクリーンショット (4).png

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
5