简体   繁体   English

如何导入 pandas_datareader

[英]How can I import pandas_datareader

  • I just downloaded Visual Studio Code, and I´m having troubles with importing the library in the newest version of the software.我刚刚下载了 Visual Studio Code,在最新版本的软件中导入库时遇到了麻烦。
  • I hope someone can give me an instruction step by step.我希望有人可以一步一步地给我指导。
  • NOTE: I'm using python as my coding language注意:我使用 python 作为我的编码语言

pip

pip install pandas-datareader

conda

# at the anaconda prompt
conda install -c anaconda pandas-datareader

Usage用法

import pandas_datareader as pdr

Note笔记

  • For older versions of ipython (eg 3.x, which is from before 2015-08), !pip install pandas-datareader may work (mentioned in a comment).对于旧版本的ipython (例如 2015-08 之前的 3.x), !pip install pandas-datareader可能有效(在评论中提到)。

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

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