0

I have been tortured by errors out of import pandas as pd for a long time. The major types I have dealt with are the following:

Error type 1:

ImportError

Error type 2:

ValueError: unknown locale: UTF-8
Daniel
  • 1,428
  • 3
  • 16
  • 35
  • The underlying issue is that mac ships a broken-by-default locale setting. – tacaswell Aug 28 '16 at 17:15
  • Thanks, so is there a way to solve those errors above by tackling this `broken-by-default local setting`? – Daniel Aug 30 '16 at 00:09
  • `IPython Notebook locale error [duplicate]` link above and the first answer of the link solve all the errors above. – Daniel Aug 30 '16 at 00:32

1 Answers1

0

For Error Type 1:

I have no idea the cause of the problems, but I figured out a way to solve them.

The major solution is here

For Error type 2:

I encountered this error after I install matplotlib package into the trypandas environment. Once I removed matplotlib, everything goes back to normal.

I could not make this error go away while installing matplotlib. I installed bokeh instead of matplotlib, and there is no problem.

Community
  • 1
  • 1
Daniel
  • 1,428
  • 3
  • 16
  • 35