gpt4 book ai didi

Pythonanywhere 安装和导入新模块

转载 作者:太空狗 更新时间:2023-10-30 00:51:32 26 4
gpt4 key购买 nike

我是 Pythonanywhere 的新手,想安装“soundcloud”Python 模块。我打开了 Bash 控制台并输入了 pip install --user soundcloud 命令。

它似乎已经安装,正如我在 Bash 控制台中使用 pip freeze 时在模块列表中看到的那样。但是,当我打开 Python 2.7 控制台并尝试 import soundcloud 时,我收到一条错误消息,指出 Soundcloud 模块不存在。

关于为什么会发生这种情况有什么想法吗?

最佳答案

您已经为 2.6 安装了 soundcloud,但您正试图在 2.7 中使用它。

来自 the FAQ :

We've included both easy_install and pip for Python versions 2.6, 2.7 and 3.2 (the default is 2.6, add -2.7 or -3.2 at the end to specify the others)

关于Pythonanywhere 安装和导入新模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11461846/

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