【问题标题】:troubles with pandas anaconda packagepandas anaconda 包的问题
【发布时间】:2017-01-06 01:47:12
【问题描述】:

我有一个新的 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。有人可以帮忙吗?

【问题讨论】:

标签: python pandas sublimetext2 spyder


【解决方案1】:

只需在您的 .bash_profile 中添加这两行,(如果您使用 bash)export LC_ALL=en_US.UTF-8 导出 LANG=en_US.UTF-8 并获取它,或者重新启动终端。或者,如果您使用的是“oh my zsh”外壳,则在 .zshrc 中添加这些行。

【讨论】:

  • 我安装了 sublime text 3 并且成功了。这可能是 sublime text 2 中的错误。
猜你喜欢
  • 2020-07-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-08-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-29
相关资源
最近更新 更多