python - How to solve import error for pandas? -


i installed anaconda python 2.7.7.
however, whenever run "import pandas" error:
"importerror: c extension: y not built. if want import pandas source directory, may need run 'python setup.py build_ext --inplace' build c extensions first."
i tried running suggested command stated that

skipping 'pandas\index.c' cython extension (up-to-date)       skipping 'pandas\src\period.c' cython extension (up-to-date)  skipping 'pandas\algos.c' cython extension (up-to-date)       skipping 'pandas\lib.c' cython extension (up-to-date)         skipping 'pandas\tslib.c' cython extension (up-to-date)       skipping 'pandas\parser.c' cython extension (up-to-date)      skipping 'pandas\hashtable.c' cython extension (up-to-date)   skipping 'pandas\src\sparse.c' cython extension (up-to-date)  skipping 'pandas\src\testing.c' cython extension (up-to-date) skipping 'pandas\msgpack.cpp' cython extension (up-to-date) 

has encountered before , found solution?

i had same problem , issue came encoding problem. os set in french , fine. when switched english had error above.

you can type

locale 

in terminal check local environment variables.

when set in french, had configuration: french config. then, after switched english, had: english config.

i added following lines in .bash_profile under /users/myname , went normal.

export lc_all=en_us.utf-8 export lang=en_us.utf-8 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -