简体   繁体   English

无法在python中导入Quandl模块

[英]can't import Quandl module in python

I've installed quanld with pip install quandl command and it was successful.我已经使用pip install quandl命令pip install quandl并且它成功了。 But when I tried to import it in VSCODE, it returns an error.但是当我尝试在 VSCODE 中导入它时,它返回一个错误。

模组

Update: Installing quandl with pip.更新:使用 pip 安装 quandl。

在此处输入图片说明

and now trying to import but lowercase现在尝试导入但小写在此处输入图片说明

but it doesn't work yet但它还没有工作

Using the lowercase works to import Quandl from version 3!使用小写字母可以从版本 3 导入Quandl Probably a change in the namespace from the previous versions as mentioned in the Quandl Blog .可能与Quandl 博客中提到的先前版本的命名空间有所变化。

import quandl

Also try to make sure you have it installed in the required python version in case your system has multiple versions of python installed.如果您的系统安装了多个版本的python,请尝试确保将其安装在所需的python 版本中。

pip3 install quandl

This works for python3.这适用于python3。

If you have a virtual env setup, make sure you have the module installed inside the env!如果您有虚拟环境设置,请确保您在环境中安装了模块!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM