前提・実現したいこと
Python初心者です。
今通常の(conda環境ではない)Windows PowerShellでpip install physbo
を試みたところ、
以下のようなエラーが発生しました。この解決法が分かりません。
physboインストール実行環境・必要なパッケージ
PHYSBOの実行環境・必要なパッケージは以下の通りです。
- Python >= 3.6
- numpy
- scipy
発生している問題・エラーメッセージ
PS C:\Users\~~~~> pip3 install physbo Collecting physbo Using cached physbo-1.0.1.tar.gz (38 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: scipy in c:\users\~~~~\appdata\roaming\python\python38\site-packages (from physbo) (1.7.3) Requirement already satisfied: numpy in c:\users\~~~~\appdata\local\programs\python\python38\lib\site-packages (from physbo) (1.21.2) Building wheels for collected packages: physbo Building wheel for physbo (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for physbo (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] running bdist_wheel running build running build_py running build_ext cythoning physbo/misc/_src/traceAB.pyx to physbo/misc/_src\traceAB.c cythoning physbo/misc/_src/cholupdate.pyx to physbo/misc/_src\cholupdate.c cythoning physbo/misc/_src/diagAB.pyx to physbo/misc/_src\diagAB.c cythoning physbo/gp/cov/_src/enhance_gauss.pyx to physbo/gp/cov/_src\enhance_gauss.c cythoning physbo/misc/_src/logsumexp.pyx to physbo/misc/_src\logsumexp.c building 'physbo.misc._src.traceAB' extension C:\Users\~~~~\AppData\Local\Temp\pip-build-env-l_b9s_0l\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\~~~~\AppData\Local\Temp\pip-install-wsci3lkz\physbo_d4fe4b21d8394690818e5c7a9be8c2ea\physbo\misc\_src\traceAB.pyx tree = Parsing.p_module(s, pxd, full_module_name) C:\Users\~~~~\AppData\Local\Temp\pip-build-env-l_b9s_0l\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\~~~~\AppData\Local\Temp\pip-install-wsci3lkz\physbo_d4fe4b21d8394690818e5c7a9be8c2ea\physbo\misc\_src\cholupdate.pyx tree = Parsing.p_module(s, pxd, full_module_name) C:\Users\~~~~\AppData\Local\Temp\pip-build-env-l_b9s_0l\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\~~~~\AppData\Local\Temp\pip-install-wsci3lkz\physbo_d4fe4b21d8394690818e5c7a9be8c2ea\physbo\misc\_src\diagAB.pyx tree = Parsing.p_module(s, pxd, full_module_name) C:\Users\~~~~\AppData\Local\Temp\pip-build-env-l_b9s_0l\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\~~~~\AppData\Local\Temp\pip-install-wsci3lkz\physbo_d4fe4b21d8394690818e5c7a9be8c2ea\physbo\gp\cov\_src\enhance_gauss.pyx tree = Parsing.p_module(s, pxd, full_module_name) C:\Users\~~~~\AppData\Local\Temp\pip-build-env-l_b9s_0l\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\~~~~\AppData\Local\Temp\pip-install-wsci3lkz\physbo_d4fe4b21d8394690818e5c7a9be8c2ea\physbo\misc\_src\logsumexp.pyx tree = Parsing.p_module(s, pxd, full_module_name) error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for physbo Failed to build physbo ERROR: Could not build wheels for physbo, which is required to install pyproject.toml-based projects
試したこと
エラー文後半の
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
は「Microsoft Visual C++ 14.0 or greater is required.」が出た場合の対処方法
に従い、対処しましたが、その後再度pip install physbo
を実行しても上記と同じエラー文が表示されました。
なのでほかの所に問題があるのかと考えていますが、アドバイスを頂ければ幸いです。
補足情報(ツールのバージョンなど)
- Windows10
- Python 3.8.0
- pip 22.0.2

あなたの回答
tips
プレビュー