Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pythonanywhere install and import new module

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?

like image 499
mrl Avatar asked Jul 12 '12 22:07

mrl


1 Answers

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)

like image 80
abarnert Avatar answered Sep 28 '22 03:09

abarnert