Search code examples
pythonpiptweepyeasy-installsix

Why isn't pip or easy_install working?


I'm trying to make something using the API tweepy and it says:

ImportError: No module named 'six'

When I try to install 'six' with pip or easy_install using the cmd, I get this error message:

'easy_install' is not recognized as an internal or external command,
operable program or batch file.

Solution

  • You need to add easy_install/pip to the system path (assuming that you use Windows). These execs are usually located in: C:\Python27\Scripts. If they are not there you need to install them. Refer to these tips for pip: How do I install pip on Windows?