0
0

More than 1 year has passed since last update.

WindowsのPoetryでpython3がないと言われたときの対処

Last updated at Posted at 2023-03-17

pyenvで3.10.10を指定したあと、poetry initでエラーが出た

>poetry init
'python3' is not recognized as an internal or external command,
operable program or batch file.

どうやらpython3.exeがないために出るエラーの模様

>python3
'python3' is not recognized as an internal or external command,
operable program or batch file.

なので、あっているかわからないが、
pyenv-win/versions/3.10.10 の中にあるpython.exeをコピーして、python3.exeを作成したら動いた。

image.png

>python3
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
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