2

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)

Simeon Visser
  • 118,920
  • 18
  • 185
  • 180
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
  • urllib.parse is a python3 module, so either `pandas` doesn't support python 2.x or the 2to3 tool is being ran on the source code – Lanaru Aug 29 '12 at 18:51

1 Answers1

5

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?

Simeon Visser
  • 118,920
  • 18
  • 185
  • 180
  • Thank you. But I have just moved from Portable Python 3 to Portable Python 2 because I also have difficulties to install modules with Python 3 and there are more preinstalled modules in Python 2... – Stéphane Laurent Aug 29 '12 at 19:24