プロが教える店舗&オフィスのセキュリティ対策術

いろいろ調べて試していますが、fbprophetがインストールできず使えず困っています。
対処法を教えていただきたいです。
環境)Windows10,Python3.10.7 64-bit、エディタ:VSCode

試行1)
pip install Cython
pip install pystan==2.17.1
pip install fbprophet
pip install plotly
↓↓
前略
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build
Tools": https://visualstudio.microsoft.com/visual-cpp-bu …
[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.
╰─> pystan

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Collecting plotly
Downloading plotly-5.10.0-py2.py3-none-any.whl (15.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.2/15.2 MB 14.9 MB/s eta 0:00:00
Collecting tenacity>=6.2.0
Downloading tenacity-8.1.0-py3-none-any.whl (23 kB)
Installing collected packages: tenacity, plotly
Successfully installed plotly-5.10.0 tenacity-8.1.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
試行2)
「pip install ephem」 ↓↓
Requirement already satisfied: ephem in c:\users\ユーザー名\appdata\local\programs\python\python310\lib\site-packages (4.1.3)

「pip install pystan」↓↓
前略
building 'pystan._api' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build
Tools": https://visualstudio.microsoft.com/visual-cpp-bu …
[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.
╰─> pystan
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

「pip install fbprophet」↓
前略
building 'pystan._api' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build
Tools": https://visualstudio.microsoft.com/visual-cpp-bu …
[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.
╰─> pystan

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

A 回答 (1件)

>Get it with "Microsoft C++ Build Tools":


――とアドバイスされてるので、MSVCのコンパイル環境を整えてみては。
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!