Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,请教一下我在运行test_mgwr_output.py时的错误 #1

Open
Gardenias-123 opened this issue Dec 19, 2023 · 1 comment
Open

Comments

@Gardenias-123
Copy link

我在运行test_mgwr_output.py时报错,是在调用m1.pysal_exec()的时候出的错误,报错信息为ModuleNotFoundError: No module named 'mgwr.gwr'。具体的错误出现在mgwr包下的mgwr.py的第454行 from mgwr.gwr import MGWR as PySalMGWR from mgwr.gwr import GWR as PySalGWR from mgwr.sel_bw import Sel_BW这里调用的mgwr.gwr好像没有这个东西,请问是我操作不当还是别的什么原因。万分感谢!

@Gardenias-123
Copy link
Author

好的,我找到问题了。在配置python环境时安装了mgwr包在stie-packages中,同时本地文件中也有一个mgwr包,这里想要导入的是site-packages中的mgwr,所以将本地的mgwr重命名一下就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant