熊猫蟒蛇包的麻烦

时间:2016-08-29 22:38:44

标签: python pandas sublimetext2 spyder

我有一个新的mac并刚安装了anaconda。当我使用ipythonspyder时,我可以import pandas没有任何问题。但是,当我使用sublime时,我收到错误

ImportError: No module named pandas

which python给出//anaconda/bin/python。 此外,pandas列在conda list中。 我正在使用Anaconda2 4.1.1python 2.7.12。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

只需在你的.bash_profile中添加这两行,(如果你正在使用bash)export LC_ALL = en_US.UTF-8 export LANG = en_US.UTF-8并将其输出,或重新启动终端。或者,如果您使用“oh my zsh”shell,则在.zshrc中添加行。