0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Python 1年生のサンプルコードを動かそうとしたらエラーになったが修正できた件

Last updated at Posted at 2025-09-24

はじめに

「Python1年生」という本のサンプルコードを動かそうとしたらエラーになりました。

具体的にはChapter 5のscikit-leranを使った部分のコードがエラーになり、どうしたらよいかと考えていました。

ソリューション

最近では、もはやソリューションは「生成AI」に突っ込むのが一番早い。

image.png

「なるほど!」と相槌まで打ってくれて偉いなぁ。
ということだそうなので、以下をWindowsのコマンドプロンプトに突っ込む。

pip install --upgrade pip
pip install --upgrade numpy pandas scikit-learn

これで、無事に動きました。

その後

ChatGPTにお礼を言うと「追加のご提案」までしてくれるって、もはや「超知性」はすぐそこまで来ていますね。

image.png

(おわり)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?