Search code examples
python-3.xquandl

Cannot import quandl in Python 3


I have spyder (Python2.7) and spyder3 (Python3.5) installed on Ubuntu 16.04. I was able to import quandl in spyder (Python2.7) setup, but not in spyder3 (Python3.5). Do you have any suggestions?

Below is the error returned in the terminal when testing 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'

Solution

  • It would seem your Python3.5 installation does not have quandl installed.

    You can install quandl easily via pip using: pip install quandl

    (or pip3 install quandl depending on your system's configuration)