我在 Ubuntu 16.04 上安装了 spyder (Python2.7) 和 spyder3 (Python3.5)。我能够在 spyder (Python2.7) 设置中导入 quandl,但不能在 spyder3 (Python3.5) 中导入。你有什么建议吗?
下面是测试 Python 3.5 时终端返回的错误:
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import quandl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'quandl'
>>> import Quandl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'Quandl'
原文由 anicehat 发布,翻译遵循 CC BY-SA 4.0 许可协议
看来您的 Python3.5 安装没有安装 quandl。
您可以通过 pip 使用以下命令轻松安装 quandl:
pip install quandl
(或
pip3 install quandl
取决于您的系统配置)