如何在 Mac M1 的 miniforge 上安装 pystan?
我有一台 2020 Mac M1,运行 Apple Silicon 的 Miniforge3-MacOSX-arm64。我尝试过 pip install pystan 并收到以下错误
错误:旧版安装失败
× 尝试安装软件包时遇到错误。 ╰─> pystan
我也尝试过 conda install pystan 并得到这个
UnsatisfiableError:发现以下规格 彼此不兼容:
输出格式:请求的包 ->可用版本
对于如何让 pystan 在我的配置上运行,我们将不胜感激。
I have a 2020 Mac M1 running Miniforge3-MacOSX-arm64 for Apple Silicon. I have tried pip install pystan and gets the following error
error: legacy-install-failure
× Encountered error while trying to install package. ╰─> pystan
I have also tried doing conda install pystan and gets this:
UnsatisfiableError: The following specifications were found to be
incompatible with each other:Output in format: Requested package -> Available versions
Any help is appreciated on how to get pystan running on my config.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题。
我必须确保 Python 版本为 3.8,然后才能使用
conda
而不是pip 安装包
。pystan
和prophet
conda create python==3.8 -n your_environment_name
conda install pystan==2.19.1.1
I ran into this same issue.
I had to ensure that the Python version was 3.8 and then I was able install the packages
pystan
andprophet
withconda
instead ofpip
.conda create python==3.8 -n your_environment_name
conda install pystan==2.19.1.1