Search code examples
pythonpandaseasy-installportable-python

easy-install with Portable Python: no module named parse


I have installed easy_install with Portable Python 2-7 on Windows XP (through the distribute module). But when I type a DOS command such as

easy_install pandas

I get the following: enter image description here

And I don't find any "parse" module on internet (and "easy_install parse" yields the same output)


Solution

  • The error is about the module urllib.parse, not parse. The documentation of the urlparse module says:

    The urlparse module is renamed to urllib.parse in Python 3.

    which means your code expects to be run with Python 3. You are running Python 2.7 which means it won't work (because the module urllib.parse is still called urlparse). Perhaps you need to look into installing a version of Portable Python that supports Python 3?