导入Python软件包

发布于 2025-01-21 15:21:34 字数 155 浏览 2 评论 0 原文

If I am looking at this package on pypi https://pypi.org/project/shamir-mnemonic/, how do I know what the module is called when I import it into my python code after I have installed it with pip3? I am not interested in using it with CLI

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

留蓝 2025-01-28 15:21:34

第一点是官方文件。如果没有,请检查您的站点包装目录以查看是否有一个文件夹似乎与软件包有关。在您的情况下,我们可以找到一个称为 shamir_mnemonic 的文件夹,并且确实

python -c "import shamir_mnemonic"

是成功的。

如果有的话,您还可以查看模块的源代码

The first point to start would be the official documentation. If there is none, then check your site-packages directory to see if there is a folder there that seems related to the package. In your case, we can find a folder called shamir_mnemonic and indeed

python -c "import shamir_mnemonic"

suceeds.

If available, you can also look at the source code of the module

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文