データ分析がしたく、jupyterLabでfbprophetをインストールしようとしたのですがエラーが出てしまいできませんでした。解決策をご教授いただきたいです。
実際のコードは
!pip3 install pystan !pip3 install fbprophet
です。
エラーの表示は
Building wheels for collected packages: fbprophet
Building wheel for fbprophet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py'"'"'; file='"'"'/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-wheel-uwyys99h
cwd: /private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/
Complete output (39 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/fbprophet
creating build/lib/fbprophet/stan_model
Importing plotly failed. Interactive plots will not work.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py", line 122, in <module>
setup(
File "/opt/anaconda3/lib/python3.8/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/opt/anaconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/opt/anaconda3/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py", line 48, in run
build_models(target_dir)
File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py", line 38, in build_models
StanBackendEnum.get_backend_class(backend).build_model(target_dir, MODEL_DIR)
File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/fbprophet/models.py", line 209, in build_model
import pystan
ModuleNotFoundError: No module named 'pystan' |
---|
ERROR: Failed building wheel for fbprophet |
Running setup.py clean for fbprophet |
Failed to build fbprophet |
Installing collected packages: fbprophet |
Running setup.py install for fbprophet ... error ERROR: Command errored out with exit status 1: command: /opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py'"'"'; __file__='"'"'/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-record-f4cq_i27/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/include/python3.8/fbprophet cwd: /private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/ Complete output (41 lines): running install running build running build_py creating build creating build/lib creating build/lib/fbprophet creating build/lib/fbprophet/stan_model Importing plotly failed. Interactive plots will not work. Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py", line 122, in <module> setup( File "/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/opt/anaconda3/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/opt/anaconda3/lib/python3.8/distutils/command/install.py", line 545, in run self.run_command('build') File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/opt/anaconda3/lib/python3.8/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py", line 48, in run build_models(target_dir) File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py", line 38, in build_models StanBackendEnum.get_backend_class(backend).build_model(target_dir, MODEL_DIR) File "/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/fbprophet/models.py", line 209, in build_model import pystan ModuleNotFoundError: No module named 'pystan' ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py'"'"'; file='"'"'/private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-install-4kjgfjop/fbprophet_0e7f152c93f047cfbfe4e571b2387ea6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/ml/3m4xf3x50_lgv1ypk953ck8r0000gn/T/pip-record-f4cq_i27/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/include/python3.8/fbprophet Check the logs for full command output.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/08/13 14:32