実現したいこと
pythonの将棋ライブラリであるcshogi(https://github.com/TadaoYamaoka/cshogi )をfreeBSDにインストールしたいです。
しかし、エラーが発生し、インストールすることができません。
おそらく、gccが使えないことによるエラーだと推測しましたが、freeBSDではgccでなくclangのはずです。
どのようにすればインストールすることができるでしょうか?
発生している問題・エラーメッセージ
> /usr/local/bin/python3.9 -m pip install --no-cache-dir cshogi Defaulting to user installation because normal site-packages is not writeable Collecting cshogi Downloading cshogi-0.5.5.tar.gz (107 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 107.8/107.8 kB 8.5 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Building wheels for collected packages: cshogi Building wheel for cshogi (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [37 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39 creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi copying cshogi/CSA.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi copying cshogi/KI2.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi copying cshogi/KIF.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi copying cshogi/PGN.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi copying cshogi/__init__.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi copying cshogi/cli.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi copying cshogi/elo.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/usi copying cshogi/usi/Engine.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/usi copying cshogi/usi/__init__.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/usi creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/gym_shogi copying cshogi/gym_shogi/__init__.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/gym_shogi creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/gym_shogi/envs copying cshogi/gym_shogi/envs/__init__.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/gym_shogi/envs creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/dlshogi copying cshogi/dlshogi/__init__.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/dlshogi creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/web copying cshogi/web/app.py -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/web creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/web/templates copying cshogi/web/templates/board.html -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/web/templates creating build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/web/static copying cshogi/web/static/board.js -> build/lib.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/web/static running build_ext building 'cshogi._cshogi' extension creating build/temp.freebsd-13.1-RELEASE-p2-amd64-cpython-39 creating build/temp.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi creating build/temp.freebsd-13.1-RELEASE-p2-amd64-cpython-39/src cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DHAVE_SSE4 -DHAVE_SSE42 -DHAVE_AVX2 -Isrc -I/usr/local/include/python3.9 -I/home/web-tools/.local/lib/python3.9/site-packages/numpy/core/include -c cshogi/_cshogi.cpp -o build/temp.freebsd-13.1-RELEASE-p2-amd64-cpython-39/cshogi/_cshogi.o -msse4.2 -mavx2 cc: error: no such file or directory: 'cshogi/_cshogi.cpp' cc: error: no input files error: command '/usr/bin/cc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cshogi Running setup.py clean for cshogi Failed to build cshogi ERROR: Could not build wheels for cshogi, which is required to install pyproject.toml-based projects
該当のソースコード
cmd
1pip install --no-cache-dir cshogi
試したこと
ドキュメントに書いてある通り、
cmd
1pip install --no-cache-dir cshogi
を実行した。
また、google検索を試したが、何で検索すればよいのかわからなかった。
補足情報(FW/ツールのバージョンなど)
FreeBSD 10.3-RELEASE-p19 + Apache
回答1件
あなたの回答
tips
プレビュー