Pythonanywhere install and import new module

2019-04-30 02:17发布

I'm new to Pythonanywhere and want to install the 'soundcloud' Python module. I've opened up a Bash console and given the pip install --user soundcloud command.

It appears to have installed, as I see it in the list of modules when I used pip freeze in the Bash console. However, when I open up a Python 2.7 console and try import soundcloud, I get an error message saying that the Soundcloud module does not exist.

Any ideas on why this is happening?

1条回答
看我几分像从前
2楼-- · 2019-04-30 02:54

You've installed soundcloud for 2.6, but you're trying to use it in 2.7.

From 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)

查看更多
登录 后发表回答