<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuta-nakata</author_name>
  <author_url>https://blog.hatena.ne.jp/yuta-nakata/</author_url>
  <blog_title>Yuta NakataのBlog</blog_title>
  <blog_url>https://www.yuta-nakata.net/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>npm</anon>
  </categories>
  <description>2024年当時、npm iがPython 3.12環境でModuleNotFoundError: No module named 'distutils'で失敗するというトラブルに遭遇しました。この記事はその時の記録ですが、2026年7月時点では根本原因が対処されており、最新のnpm/node-gypであればこのエラー自体が出なくなっています。当時ハマった経緯と、今この記事を読んでいる方が確認すべきポイントをあわせてまとめ直します。 問題 原因 当時試した解決策 解決策1 解決策2 解決策3 【2026年7月追記】この問題は今も起きるのか それでも起きるとしたら あわせて変わったnpm側の作法 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2024%2F04%2F13%2F080251&quot; title=&quot;python3.12でnpm iをすると、エラーになる話 - Yuta NakataのBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuta-nakata/20240504/20240504131712.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-13 08:02:51</published>
  <title>python3.12でnpm iをすると、エラーになる話</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2024/04/13/080251</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
