LoginSignup
0
0

More than 1 year has passed since last update.

Windows10でPythonが動かない

Last updated at Posted at 2021-09-28

不具合現象

Pythonのプログラムを起動しようとして
コマンドプロンプトで

$ python xxx.py

と入力すると

Python

とだけ出力して、何もウインドウや結果が出ない。

原因

Windows組み込みのPythonが呼ばれている

C:\Users{User}\AppData\Local\Microsoft\WindowsApps\python.exe

自分がインストールしたpython.exeが呼ばれるように PATH環境変数を設定する
私の場合は
C:\Users{User}\AppData\Local\Programs\Python\Python39\python.exe

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