import error; no module named Quandl

前端 未结 15 754
暖寄归人
暖寄归人 2020-12-16 11:37

I am am trying to run the Quandl module on a virtualenv which I have uninstalled packages only pandas and then Quandl,

I am running Python 2.7.10 - I have uninstall

相关标签:
15条回答
  • 2020-12-16 12:13

    Try with lower case, import is case sensitive and it's as below:

    import quandl
    

    Did you install with pip? If so ensure quandl is among the listed installed modules with

    pip list
    

    Otherwise try

    help('modules')
    

    To make sure it was installed properly. If you don't see quandl listed , try to reinstall.

    0 讨论(0)
  • 2020-12-16 12:16

    i had the same error message ' ImportError: No module named Quandl ' so what i did was to just change it to

    import quandl
    print(df.head())
    
    0 讨论(0)
  • 2020-12-16 12:17

    Finally got to make it work. Installed quandl through Anaconda Powershell Prompt (not the regular Anaconda Prompt). It depreciated some of my libraries, but finally it is working! Spent 1.5 days to fix this!! Thanks. Original post: Quandl not working in Jupyter Notebook (but working at command-prompt)

    0 讨论(0)
  • 2020-12-16 12:19

    If someone running Jupyter image on docker and facing the same issue, you can open terminal in Jupyter

    and then type

    pip install quandl
    

    it will install the quandl where jupyter kernelspec list points. then import as

    import quandl  
    

    (q lowercase)

    I did not find this solution anywhere else hence mentioned this

    0 讨论(0)
  • 2020-12-16 12:25

    quandl has now changed, you require an api key, go the site and register your email.

    import quandl quandl.ApiConfig.api_key = 'your_api_key_here' df = quandl.get('WIKI/GOOGL')

    0 讨论(0)
  • 2020-12-16 12:26

    I'm having a related issue with the capitalisation of "Q" in Pycharm IDE (Quandl 3.0.1):

    import quandl as q
    

    The above will correctly import however auto-completion will not function.

    import Quandl as q
    

    The above will not import but will allow auto-completion.

    My solution is to use autocomplete when working and then comment out the second import for running.

    import quandl as q
    #import Quandl as q
    
    0 讨论(0)
提交回复
热议问题