質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

解決済

1回答

1879閲覧

Pystanのインストール時のエラー解消方法

Sato_nu

総合スコア3

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2023/07/10 01:23

編集2023/07/10 01:53

実現したいこと

pystanをanaconda promptによってインストールしたいと考えています。

  • pip install pystan

前提

使用しているPCは会社のPCで以下のスペックです。
Windows 10 Enterprise
64bit オペレーティングシステム、x64ベースプロセッサ
32GB

C++コンパイラのインストールが必要とのことで、サイト(https://visualstudio.microsoft.com/ja/visual-cpp-build-tools/)
のビルドアップツールをインストールしようとしたのですが、会社PCでは認められたアプリのみインストール可能ということで、「Visual Studio 2019 Pro」をインストールしてもらい、以下の画像のようにC++によるデスクトップ開発に含まれる機能をすべてインストールしています。
イメージ説明

環境はbaseではなく、timeseriesという環境を構築してそこに必要なライブラリをインストールしている状態です。

上記のPCに対して、pystanをインストールして時系列分析の状態空間モデルによる将来予測を検討しています。
pystanをanaconda promptで「pip install pystan」としたところエラーメッセージが発生しました。
エラーメッセージ部分のみ記載いたします。

発生している問題・エラーメッセージ

copying pystan\stan\lib\stan_math\lib\boost_1.69.0\boost\numeric\odeint\stepper\generation\generation_runge_kutta_cash_karp54_classic.hpp -> build\lib.win-amd64-cpython-311\pystan\stan\lib\stan_math\lib\boost_1.69.0\boost\numeric\odeint\stepper\generation error: could not create 'build\lib.win-amd64-cpython-311\pystan\stan\lib\stan_math\lib\boost_1.69.0\boost\numeric\odeint\stepper\generation\generation_runge_kutta_cash_karp54_classic.hpp': No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pystan Running setup.py clean for pystan Failed to build pystan ERROR: Could not build wheels for pystan, which is required to install pyproject.toml-based projects

該当のソースコード

pip install pystan

試したこと

・こちらで記載されているようにパスは設定済みです。
https://postgresweb.com/python-error-which-is-required-to-install-pyproject-toml-based-projects

エラーの回避方法を教えてください。
宜しくお願い致します。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

https://pystan.readthedocs.io/en/latest/

PyStan runs on Linux and macOS.

https://pystan.readthedocs.io/en/latest/faq.html#is-windows-supported

If WSL2 works for you, then the answer is “yes,” otherwise the answer is “no.”

Windowsマシンでやりたいというなら、現実的には、WSL2 を使うしかないかと。


Experience has proven that supporting PyStan on Windows is challenging and requires a considerable investment of resources. If you would like to fund the development and ongoing maintenance of a version of PyStan which works on Windows, please post your proposal for discussion on the Stan forum.

だそうですよ。

投稿2023/07/10 01:44

quickquip

総合スコア11046

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

Sato_nu

2023/07/10 02:06

調査及び回答いただきありがとうございます。 そもそもpystanがWindowsマシーンで実行することが困難ということですね。 WSL2を使用したことがなく自分には敷居が高そうなので、Rでの実行を検討してみます。
Sato_nu

2023/07/10 02:16

Microsoft Windows is not supported in PyStan 3. It was (partially) supported in PyStan 2. と記載されているので、以前のverではwindows対応していたようです。
quickquip

2023/07/10 02:20

過去の経験からWindowsプラットフォームのサポートは困難でかなりのリソースが必要だと分かっているので、開発と継続的なサポートのための資金を出してくれるなら連絡ください。って書いてありますからね……
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問