2
0

Python3コマンドが使えない!

Posted at

環境

windows11

状況

環境Pathを通して,Pythonが使えるようになったのに,Python3 -uで実行しようとしたら使えなかった.
しかし,Python -uなら動いた.

解決策

まさかの方法でした.C:\Users\ユーザー名\AppData\Local\Programs\Python\Python310の中にあるPython.exeファイルをコピペしてPython3.exeに名前を変更することで解決しました.

後記

調べてもあまり情報が出てこなくて困りました.ある記事では,「Pythonコマンドを使えばよいではないですか」と書かれていました.確かに,その通りなのですが,Python3コマンドを使いたいかったのです...
どなたかの役に立てばうれしいです.

2
0
3

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
2
0