質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

0回答

902閲覧

nes_pyをインストールしたいのですが、エラーが起きてしまいます。

Tyutohannpa_

総合スコア24

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2022/05/20 07:35

コマンドプロンプトで「pip install nes_py」
と入力したところ
以下のようなエラーが出てしまいます。
推測でもいいので解決方法をご教授していただけると幸いです。

Collecting nes_py
Using cached nes_py-8.1.8.tar.gz (76 kB)
Preparing metadata (setup.py) ... done
省略
Building wheels for collected packages: nes_py
Building wheel for nes_py (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [34 lines of output]
省略
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ines_py/nes/include -IC:\Users\phanton\AppData\Local\Programs\Python\Python39\include -IC:\Users\phanton\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include /EHsc /Tpnes_py/nes/src/mappers\mapper_CNROM.cpp /Fobuild\temp.win-amd64-3.9\Release\nes_py/nes/src/mappers\mapper_CNROM.obj -std=c++1y -march=native -pipe -O3
cl : コマンド ライン warning D9002 : 不明なオプション '-std=c++1y' を無視します。
cl : コマンド ライン warning D9002 : 不明なオプション '-march=native' を無視します。
cl : コマンド ライン warning D9002 : 不明なオプション '-pipe' を無視します。
cl : コマンド ライン warning D9002 : 不明なオプション '-O3' を無視します。
mapper_CNROM.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\yvals.h(12): fatal error C1083: include ファイルを開けません。'crtdbg.h':No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for nes_py
Running setup.py clean for nes_py
Failed to build nes_py
Installing collected packages: nes_py
Running setup.py install for nes_py ... error
error: subprocess-exited-with-error

× Running setup.py install for nes_py did not run successfully.
│ exit code: 1
╰─> [34 lines of output]
省略
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ines_py/nes/include -IC:\Users\phanton\AppData\Local\Programs\Python\Python39\include -IC:\Users\phanton\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include /EHsc /Tpnes_py/nes/src/mappers\mapper_CNROM.cpp /Fobuild\temp.win-amd64-3.9\Release\nes_py/nes/src/mappers\mapper_CNROM.obj -std=c++1y -march=native -pipe -O3
cl : コマンド ライン warning D9002 : 不明なオプション '-std=c++1y' を無視します。
cl : コマンド ライン warning D9002 : 不明なオプション '-march=native' を無視します。
cl : コマンド ライン warning D9002 : 不明なオプション '-pipe' を無視します。
cl : コマンド ライン warning D9002 : 不明なオプション '-O3' を無視します。
mapper_CNROM.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\yvals.h(12): fatal error C1083: include ファイルを開けません。'crtdbg.h':No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> nes_py

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問