[英]ModuleNotFoundError: No module named 'pystan'
Pystan
has been installed successfully on EMR
nodes (master, task and core nodes), but I still get this error Pystan
已成功安装在EMR
节点(主节点、任务节点和核心节点)上,但仍然出现此错误
ModuleNotFoundError: No module named pystan
ModuleNotFoundError:没有名为pystan 的模块
I installed pystan using pip install pystan
through boostrap_scrtip_actions
.我使用
pip install pystan
了boostrap_scrtip_actions
。
Does anyone know what could be the issue?有谁知道可能是什么问题?
I use Python 3.7, emr 6.3.0
.我使用 Python 3.7,
emr 6.3.0
。
Found the issue, posting the answer here for others.找到了问题,在这里为其他人发布答案。 When installing the
pystan
without specifying the version, it installs the latest version and in the latest version of pystan
, it uses stan
as the main module and not pystan
.在不指定版本的情况下安装
pystan
时,它会安装最新版本,并且在最新版本的pystan
中,它使用stan
作为主模块而不是pystan
。 To resolve the issue, specify your version or use import stan
instead.要解决此问题,请指定您的版本或改用
import stan
。
Refer to the latest pystan doc https://pypi.org/project/pystan/参考最新的pystan doc https://pypi.org/project/pystan/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.