コマンドプロンプトで「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.
あなたの回答
tips
プレビュー