简体   繁体   English

ModuleNotFoundError:没有名为“pystan”的模块

[英]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 pystanboostrap_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.

相关问题 ModuleNotFoundError:没有名为“sagemaker”的模块 - ModuleNotFoundError: No module named 'sagemaker' ModuleNotFoundError:没有名为“azure”的模块 - ModuleNotFoundError: No module named 'azure' ModuleNotFoundError:AWS Build 中没有命名的模块 - ModuleNotFoundError: No module named in AWS Build ModuleNotFoundError:没有名为“psycopg2”的模块 [AWS Glue] - ModuleNotFoundError: No module named 'psycopg2' [AWS Glue] ModuleNotFoundError:没有名为“google.cloud.location”的模块 - ModuleNotFoundError: No module named 'google.cloud.location' ModuleNotFoundError:没有名为“google.rpc.context”的模块 - ModuleNotFoundError: No module named 'google.rpc.context' firebase 和 python:ModuleNotFoundError:没有名为“urllib3”的模块 - firebase and python: ModuleNotFoundError: No module named 'urllib3' AWS Lambda - Python - ModuleNotFoundError:没有名为“pandas”的模块 - AWS Lambda - Python - ModuleNotFoundError: No module named 'pandas' ModuleNotFoundError:没有名为“application”的模块 [部署 Django 到 AWS] - ModuleNotFoundError: No module named 'application' [Deploying Django to AWS] ModuleNotFoundError:运行 GCP 数据流作业时没有名为“oracledb”的模块 - ModuleNotFoundError: No module named 'oracledb' when running GCP Dataflow jobs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM