LoginSignup
0
0

More than 1 year has passed since last update.

Pythonインストール

Posted at

背景

新しいPCを買ったので、再度pythonのインストールを行った

方法

  1. やり方わからなかったので、とりあえずネットで検索
    Python環境構築ガイド
    https://www.python.jp/install/windows/index.html

  2. 通常のと、Anaconda版があるみたいだけど、通常版をインストールする
    通常版はわかりにくいからと、こっちのページを案内された
    とくにこだわりはないので、最新版3.11をインストール
    https://pythonlinks.python.jp/ja/index.html

  3. パスの設定を忘れるとややこしいので、1の✓はしっかりとするimage.png

  4. コマンドプロンプトを開いて pythonと入力し、インストールしたバージョンが
    出てくればOK
    image.png

  5. おまけに、
    PowerSHellの初期設定もおこなう.
    以下をpowershell内で入力
    Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

    意味は
    Set-ExecutionPolicy RemoteSigned
    実行ポリシーを変更。「RemoteSigned」はローカルは可、インターネットダウンロードは署名付きを許可。

    -Scope CurrentUser
    コンピューターの現在のユーザーのグループ
    -Force
    強制的に上書き

おわり

参考

https://www.python.jp/install/windows/index.html
https://harikofu.blog.fc2.com/blog-entry-36.html
https://learn.microsoft.com/ja-jp/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3

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