Import pandas on jupyter ipython notebook fails

前端 未结 3 2135
时光取名叫无心
时光取名叫无心 2020-12-31 22:28

I am able to import the pandas package within the spyder ide; however, if I attempt to open a new juypter notebook, the import fails.

I use the Anaconda package dis

3条回答
  •  清酒与你
    2020-12-31 23:03

    I had the same issue on Mac OS X with Anaconda (Python 2). I tried importing the pandas package in python repl, and got this error:

    ValueError: unknown locale: UTF-8
    

    Therefore, I've added the following lines to my ~/.bash_profile:

    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
    

    And this has fixed the issue for me.

提交回复
热议问题