gpt4 book ai didi

python - Debian Python 2.5 包括来自 AlchemyAPI 的模块

转载 作者:太空宇宙 更新时间:2023-11-04 06:35:31 25 4
gpt4 key购买 nike

正在尝试安装 AlchemyAPI.py-2.5

无法运行示例。

Debian 6.0

python 示例/sentiment.py:

Traceback (most recent call last):
File "example/sentiment.py", line 4, in <module>
import AlchemyAPI
ImportError: No module named AlchemyAPI

如何安装该模块?在自述文件中说:

To install this module, copy the desired AlchemyAPI.py file into your desiredPython import directory.

如果我在 debian 上运行,我想要的目录是什么?

非常困惑,感谢任何帮助。

最佳答案

您需要将 AlchemyAPI.py-2.5 重命名为 AlchemyAPI.py 才能导入,并将其添加到 PYTHONPATH(其中包括 Python 包目录和工作目录)。

在您的示例中,您可以将文件复制到:example/AlchemyAPI.py

关于python - Debian Python 2.5 包括来自 AlchemyAPI 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11899630/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com