简体   繁体   English

如何在Anaconda中安装Pygwr?

[英]How to install Pygwr in anaconda?

我已经找到了用于地理加权回归(GWR)的软件包 ,但是我不知道如何安装它,因此在使用Jupiter笔记本时可以访问它吗?

Looking at the code, that package hasn't been designed to be installed—there's no setup.py or other metadata, so it can't be installed by pip , and it isn't on PyPI or Conda or Conda-Forge. 查看代码,该软件包尚未设计为要安装-没有setup.py或其他元数据,因此无法通过pip进行安装,并且它不在PyPI或Conda或Conda-Forge上。

What they apparently want you to do is to copy the pygwr directory into the top level directory of your own program, and distribute 1 and deploy it as part of your program. 他们显然希望您执行的操作是将pygwr目录复制到您自己的程序的顶层目录中,然后分发1并将其作为程序的一部分进行部署。


It's worth noting that this code hasn't been updated since 2013, and doesn't have that many stars, incoming links, etc., so there's a good chance it won't do everything you want it to (it may not even work with current versions of Python or whatever libraries it depends on), and there probably won't be any support for it; 值得注意的是,此代码自2013年以来就没有进行过更新,并且没有那么多的星星,传入的链接等,因此很有可能它无法完成您想要执行的所有操作(甚至可能无法正常工作)使用最新版本的Python或它依赖的任何库),可能不会对此提供任何支持; anything that needs to be fixed, updated, or extended, you're going to have to figure out how to code works and do it yourself. 任何需要修复,更新或扩展的内容,您都必须弄清楚编码的工作方式并自己完成。


1. Notice that it's licensed under GPL. 1.请注意,它是根据GPL许可的。 This means that if you're going to distribute your program, and your program isn't also under GPL, you'll need to read up on licensing to see what your responsibilities are. 这意味着,如果您要分发程序,并且该程序也不在GPL之下,则需要阅读许可以了解您的职责。 If you have to fork the code to modify it—which you likely will—you probably have to give those modifications away under the same license as the original. 如果您必须派出代码来修改它(可能会修改),则可能必须在与原始代码相同的许可下放弃这些修改。 Forking the GitHub repo, making that fork rather than the original a submodule of your own repo, and making a pull request for anything you change is probably sufficient, but IANAL. 分叉GitHub存储库,使该fork而不是原始存储库成为您自己的存储库的子模块,并对您所做的任何更改发出拉取请求就足够了,但是可以使用IANAL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM